mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Editcount
synced 2024-11-24 08:14:39 +00:00
e0c50d984f
* replace text 'version' in ExtensionCredits with version based on 'LastChangedDate' for automatic version updating
29 lines
1.1 KiB
PHP
29 lines
1.1 KiB
PHP
<?php
|
|
if (!defined('MEDIAWIKI')) die();
|
|
/**
|
|
* 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]}}
|
|
*
|
|
* @addtogroup Extensions
|
|
*
|
|
* @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
|
|
* @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
|
|
*/
|
|
|
|
$wgExtensionCredits['specialpage'][] = array(
|
|
'name' => 'Editcount',
|
|
'version' => preg_replace('/^.* (\d\d\d\d-\d\d-\d\d) .*$/', '\1', '$LastChangedDate$'), #just the date of the last change
|
|
'author' => 'Ævar Arnfjörð Bjarmason',
|
|
'description' => 'Displays [[Special:Editcount|edit count]] of a user',
|
|
'descriptionmsg' => 'editcount-desc',
|
|
'url' => 'http://www.mediawiki.org/wiki/Extension:Editcount',
|
|
);
|
|
|
|
$dir = dirname(__FILE__) . '/';
|
|
$wgExtensionMessagesFiles['Editcount'] = $dir .'SpecialEditcount.i18n.php';
|
|
$wgAutoloadClasses['Editcount'] = $dir . 'SpecialEditcount_body.php';
|
|
$wgSpecialPages['Editcount'] = 'Editcount';
|