r44769 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44768‎ | r44769 | r44770 >
Date:15:00, 18 December 2008
Author:catrope
Status:ok
Tags:
Comment:
API: Fix up r44676: convert underscores to spaces in canonical names.
Modified paths:
  • /trunk/phase3/includes/api/ApiQuerySiteinfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php
@@ -141,7 +141,7 @@
142142 $data[$ns]['subpages'] = '';
143143
144144 if( $canonical )
145 - $data[$ns]['canonical'] = $canonical;
 145+ $data[$ns]['canonical'] = strtr($canonical, '_', ' ');
146146 }
147147
148148 $this->getResult()->setIndexedTagName( $data, 'ns' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r44676* (bug 16672) Add canonical parameter to meta=siteinfo&siprop=namespaces|name...soxred9317:19, 16 December 2008

Status & tagging log