2005-07-14 17:53:27 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* A Special Page extension that displays edit counts.
|
|
|
|
*
|
|
|
|
* This page can be accessed from Special:Editcount[/user] as well as being
|
2005-08-26 14:20:43 +00:00
|
|
|
* included like {{Special:Editcount/user[/namespace]}}
|
2005-07-14 17:53:27 +00:00
|
|
|
*
|
2010-06-06 15:12:22 +00:00
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
2005-07-14 17:53:27 +00:00
|
|
|
* @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
|
2005-09-27 19:50:49 +00:00
|
|
|
* @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
|
2005-07-14 17:53:27 +00:00
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
|
|
|
|
*/
|
|
|
|
|
2015-05-24 15:37:38 +00:00
|
|
|
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+' );
|
2014-06-18 14:50:48 +00:00
|
|
|
}
|