jenkins-bot has submitted this change and it was merged.

Change subject: Require extension registration
......................................................................


Require extension registration

Change-Id: Ic75a0a4056478f68dbc3016404697cc4ef148158
---
M CleanChanges.php
1 file changed, 2 insertions(+), 43 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/CleanChanges.php b/CleanChanges.php
index f447aab..54d3da8 100644
--- a/CleanChanges.php
+++ b/CleanChanges.php
@@ -8,47 +8,6 @@
                'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
        ); */
        return;
+} else {
+       die( 'This version of the CleanChanges extension requires MediaWiki 
1.25+' );
 }
-/**
- * Setup for pre-1.25 wikis. Make sure this is kept in sync with extension.json
- */
-
-/**
- * An extension to show a nice compact changes list and few extra filters for
- * Special:RecentChanges.php
- *
- * @file
- * @ingroup Extensions
- *
- * @author Niklas Laxström
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 
2.0 or later
- */
-
-/* Extension information */
-$wgExtensionCredits['other'][] = array(
-       'path' => __FILE__,
-       'name' => 'Clean Changes',
-       'version' => '2016-02-12',
-       'author' => 'Niklas Laxström',
-       'descriptionmsg' => 'cleanchanges-desc',
-       'url' => 'https://www.mediawiki.org/wiki/Extension:CleanChanges',
-       'license-name' => 'GPL-2.0+',
-);
-
-/* Set up messages and includes */
-$wgMessagesDirs['CleanChanges'] = __DIR__ . '/i18n';
-$wgAutoloadClasses['NCL'] =  __DIR__ . "/CleanChanges_body.php";
-$wgAutoloadClasses['CCFilters'] = __DIR__ . "/Filters.php";
-
-require_once __DIR__ . '/Resources.php';
-
-/* Hook into code */
-$wgHooks['FetchChangesList'][] = 'NCL::hook';
-$wgHooks['MakeGlobalVariablesScript'][] = 'NCL::addScriptVariables';
-$wgHooks['ChangesListSpecialPageQuery'][] = 'CCFilters::user';
-$wgHooks['SpecialRecentChangesPanel'][] = 'CCFilters::userForm';
-$wgHooks['ChangesListSpecialPageQuery'][] = 'CCFilters::trailer';
-$wgHooks['SpecialRecentChangesPanel'][] = 'CCFilters::trailerForm';
-
-$wgCCUserFilter = true;
-$wgCCTrailerFilter = false;

-- 
To view, visit https://gerrit.wikimedia.org/r/270249
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic75a0a4056478f68dbc3016404697cc4ef148158
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CleanChanges
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com>
Gerrit-Reviewer: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to