r103494 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103493‎ | r103494 | r103495 >
Date:19:06, 17 November 2011
Author:reedy
Status:ok
Tags:
Comment:
Fix the rest of 'inlanguage ' in r93765
Modified paths:
  • /trunk/phase3/includes/api/ApiQuerySiteinfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php
@@ -270,7 +270,7 @@
271271 }
272272
273273 $params = $this->extractRequestParams();
274 - $langCode = isset( $params['inlanguagecode '] ) ? $params['inlanguagecode '] : '';
 274+ $langCode = isset( $params['inlanguagecode'] ) ? $params['inlanguagecode'] : '';
275275
276276 if( $langCode ) {
277277 $langNames = Language::getTranslatedLanguageNames( $langCode );
@@ -476,7 +476,7 @@
477477
478478 public function appendLanguages( $property ) {
479479 $params = $this->extractRequestParams();
480 - $langCode = isset( $params['inlanguagecode '] ) ? $params['inlanguagecode '] : '';
 480+ $langCode = isset( $params['inlanguagecode'] ) ? $params['inlanguagecode'] : '';
481481
482482 if( $langCode ) {
483483 $langNames = Language::getTranslatedLanguageNames( $langCode );
@@ -583,7 +583,7 @@
584584 ),
585585 'showalldb' => false,
586586 'numberingroup' => false,
587 - 'inlanguagecode ' => null,
 587+ 'inlanguagecode' => null,
588588 );
589589 }
590590

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93765Fix minor naming issue from r93314, add a bit to parameter documentation alsoreedy16:26, 2 August 2011

Status & tagging log