Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -135,8 +135,13 @@ |
136 | 136 | 'id' => $ns |
137 | 137 | ); |
138 | 138 | ApiResult :: setContent( $data[$ns], $title ); |
139 | | - if( MWNamespace::hasSubpages($ns) ) |
| 139 | + $canonical = Namespace::getCanonicalName( $ns ); |
| 140 | + |
| 141 | + if( MWNamespace::hasSubpages( $ns ) ) |
140 | 142 | $data[$ns]['subpages'] = ''; |
| 143 | + |
| 144 | + if( $canonical ) |
| 145 | + $data[$ns]['canonical'] = $canonical; |
141 | 146 | } |
142 | 147 | |
143 | 148 | $this->getResult()->setIndexedTagName( $data, 'ns' ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -233,6 +233,7 @@ |
234 | 234 | * (bug 7492) Rights can now be assigned to specific IP addresses and ranges by |
235 | 235 | using $wgAutopromote (new defines: APCOND_ISIP and APCOND_IPINRANGE) |
236 | 236 | * Add a 'change block' link to Special:IPBlockList und Special:Log |
| 237 | +* (bug 16672) Add canonical parameter to meta=siteinfo&siprop=namespaces|namespacealiases. |
237 | 238 | |
238 | 239 | === Bug fixes in 1.14 === |
239 | 240 | |