dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
API: Fix up r44676: convert underscores to spaces in canonical names.
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQuerySiteinfo.php
diff --git
a/includes/api/ApiQuerySiteinfo.php
b/includes/api/ApiQuerySiteinfo.php
index
5e50370
..
06c5fc5
100644
(file)
--- a/
includes/api/ApiQuerySiteinfo.php
+++ b/
includes/api/ApiQuerySiteinfo.php
@@
-141,7
+141,7
@@
class ApiQuerySiteinfo extends ApiQueryBase {
$data[$ns]['subpages'] = '';
if( $canonical )
- $data[$ns]['canonical'] =
$canonical
;
+ $data[$ns]['canonical'] =
strtr($canonical, '_', ' ')
;
}
$this->getResult()->setIndexedTagName( $data, 'ns' );