mediawiki-extensions-Editcount/Editcount.php
Kunal Mehta f3559ba849 Autofixing MediaWiki.Commenting.* errors
Change-Id: Idb326bc8c63170930e741feaaa794a1a0003442b
2018-07-27 00:34:00 -07:00

28 lines
950 B
PHP

<?php
/**
* A Special Page extension that displays edit counts.
*
* This page can be accessed from Special:Editcount[/user] as well as being
* included like {{Special:Editcount/user[/namespace]}}
*
* @file
* @ingroup Extensions
* @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
* @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
* @license GPL-2.0-or-later
*/
if ( function_exists( 'wfLoadExtension' ) ) {
wfLoadExtension( 'Editcount' );
// Keep i18n globals so mergeMessageFileList.php doesn't break
$wgMessagesDirs['Editcount'] = __DIR__ . '/i18n';
$wgExtensionMessagesFiles['EditcountAlias'] = __DIR__ . '/Editcount.alias.php';
wfWarn(
'Deprecated PHP entry point used for Editcount extension. Please use wfLoadExtension instead, ' .
'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
);
return;
} else {
die( 'This version of the Editcount extension requires MediaWiki 1.25+' );
}