* Added createonly parameter to action=edit
* Replaced $wgAPIUCUserPrefixMinLength by the more generic $wgAPIMaxDBRows
* (bug 11719) Remove trailing blanks in YAML output.
+* (bug 13541) Added siprop=specialpagealiases to meta=siteinfo
=== Languages updated in 1.13 ===
case 'namespacealiases' :
$this->appendNamespaceAliases($p);
break;
+ case 'specialpagealiases' :
+ $this->appendSpecialPageAliases($p);
+ break;
case 'interwikimap' :
$filteriw = isset($params['filteriw']) ? $params['filteriw'] : false;
$this->appendInterwikiMap($p, $filteriw);
$this->getResult()->addValue('query', $property, $data);
}
+ protected function appendSpecialPageAliases($property)
+ {
+ global $wgLang;
+ $data = array();
+ foreach($wgLang->getSpecialPageAliases() as $specialpage => $aliases)
+ {
+ $arr = array('realname' => $specialpage, 'aliases' => $aliases);
+ $this->getResult()->setIndexedTagName($arr['aliases'], 'alias');
+ $data[] = $arr;
+ }
+ $this->getResult()->setIndexedTagName($data, 'specialpage');
+ $this->getResult()->addValue('query', $property, $data);
+ }
+
protected function appendInterwikiMap($property, $filter) {
$this->resetQueryParams();
'general',
'namespaces',
'namespacealiases',
+ 'specialpagealiases',
'interwikimap',
'dbrepllag',
'statistics',
' "general" - Overall system information',
' "namespaces" - List of registered namespaces (localized)',
' "namespacealiases" - List of registered namespace aliases',
+ ' "specialpagealiases" - List of special page aliases',
' "statistics" - Returns site statistics',
' "interwikimap" - Returns interwiki map (optionally filtered)',
' "dbrepllag" - Returns database server with the highest replication lag',