'Listadmins' => array( 'SpecialRedirectToSpecial', 'Listadmins', 'Listusers', 'sysop' ),
'MergeHistory' => array( 'SpecialPage', 'MergeHistory', 'mergehistory' ),
'Listbots' => array( 'SpecialRedirectToSpecial', 'Listbots', 'Listusers', 'bot' ),
- 'API' => array( 'SpecialAPI' ),
);
static public $mAliases;
global $wgOut, $wgContLang;
$msg = $wgContLang->lc( $this->name() ) . '-summary';
- $out = wfMsg( $msg );
- if ( ! wfEmptyMsg( $msg, $out ) and $out !== '' and ! $this->including() )
+ $out = wfMsgNoTrans( $msg );
+ if ( ! wfEmptyMsg( $msg, $out ) and $out !== '' and ! $this->including() ) {
$wgOut->addWikiText( $out );
+ }
}
return SpecialPage::getTitleFor( 'Contributions', $wgUser->getName() );
}
}
-
-/**
- * Shortcut to api.php
- *
- * Unfortunately we can't use SpecialRedirectToSpecial here
- */
-class SpecialAPI extends UnlistedSpecialPage {
- function __construct() {
- parent::__construct('API');
- }
-
- function execute($par) {
- global $wgScriptPath, $wgOut;
- if($par != '')
- $wgOut->redirect("$wgScriptPath/api.php?$par");
- else
- $wgOut->redirect("$wgScriptPath/api.php");
- }
-}