From: Sam Reed Date: Mon, 8 Mar 2010 22:36:52 +0000 (+0000) Subject: Minor comment for r63428 X-Git-Tag: 1.31.0-rc.0~37508 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=56d0e5d9439f709bcb0c45057f52c0ba52d28fb2;p=lhc%2Fweb%2Fwiklou.git Minor comment for r63428 --- diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 6b9ddbbbcf..aee70acff9 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -54,6 +54,7 @@ class ApiParse extends ApiBase { // $title parameter in Parser::parse isn't enough *sigh* global $wgParser, $wgUser, $wgTitle, $wgEnableParserCache, $wgLang; + //Current unncessary, code to act as a safeguard against any change in current behaviour of uselang breaks if ( isset( $params['uselang'] ) && $params['uselang'] != $wgLang->getCode() ) { $oldLang = $wgLang; //Backup wgLang $wgLang = Language::factory( $params['uselang'] );