Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -54,6 +54,7 @@ |
55 | 55 | // $title parameter in Parser::parse isn't enough *sigh* |
56 | 56 | global $wgParser, $wgUser, $wgTitle, $wgEnableParserCache, $wgLang; |
57 | 57 | |
| 58 | + //Current unncessary, code to act as a safeguard against any change in current behaviour of uselang breaks |
58 | 59 | if ( isset( $params['uselang'] ) && $params['uselang'] != $wgLang->getCode() ) { |
59 | 60 | $oldLang = $wgLang; //Backup wgLang |
60 | 61 | $wgLang = Language::factory( $params['uselang'] ); |