* (bug 10365) Localization of Special:Version
* When installing using Postgres, the Pl/Pgsql language is now checked for
and installed when at the superuser level.
+* Added [[Special:API]] shortcut to api.php
=== Bug fixes in 1.12 ===
'Listadmins' => array( 'SpecialRedirectToSpecial', 'Listadmins', 'Listusers', 'sysop' ),
'MergeHistory' => array( 'SpecialPage', 'MergeHistory', 'mergehistory' ),
'Listbots' => array( 'SpecialRedirectToSpecial', 'Listbots', 'Listusers', 'bot' ),
+ 'API' => array( 'SpecialAPI' ),
);
static public $mAliases;
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;
+ $wgOut->redirect("$wgScriptPath/api.php?$par");
+ }
+}