2005-07-14 17:53:27 +00:00
|
|
|
<?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
|
2005-08-26 14:20:43 +00:00
|
|
|
* included like {{Special:Editcount/user[/namespace]}}
|
2005-07-14 17:53:27 +00:00
|
|
|
*
|
2007-01-20 15:10:35 +00:00
|
|
|
* @addtogroup 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
$wgExtensionFunctions[] = 'wfSpecialEditcount';
|
|
|
|
$wgExtensionCredits['specialpage'][] = array(
|
|
|
|
'name' => 'Editcount',
|
2007-01-11 06:28:30 +00:00
|
|
|
'author' => 'Ævar Arnfjörð Bjarmason',
|
|
|
|
'description' => 'Displays [[Special:Editcount|edit count]] of a user',
|
2005-07-14 17:53:27 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
function wfSpecialEditcount() {
|
|
|
|
global $IP, $wgMessageCache;
|
2007-01-11 06:28:30 +00:00
|
|
|
|
2007-01-01 21:07:53 +00:00
|
|
|
require_once ('SpecialEditcount.i18n.php' );
|
2007-04-02 14:23:15 +00:00
|
|
|
foreach( efSpecialEditcountMessages() as $lang => $messages )
|
2007-01-01 21:07:53 +00:00
|
|
|
$wgMessageCache->addMessages( $messages, $lang );
|
2007-12-16 18:38:50 +00:00
|
|
|
|
2007-04-23 20:58:49 +00:00
|
|
|
$GLOBALS['wgAutoloadClasses']['Editcount'] = dirname( __FILE__ ) .
|
|
|
|
'/SpecialEditcount_body.php';
|
2005-07-14 17:53:27 +00:00
|
|
|
|
2007-12-16 18:38:50 +00:00
|
|
|
$GLOBALS['wgSpecialPages']['editcount'] = array( /*class*/ 'Editcount',
|
|
|
|
/*name*/ 'Editcount', /* permission */'', /*listed*/ true,
|
2007-04-23 20:58:49 +00:00
|
|
|
/*function*/ false, /*file*/ false );
|
2005-08-26 14:20:43 +00:00
|
|
|
|
2005-07-14 17:53:27 +00:00
|
|
|
}
|