From: Amir E. Aharoni Date: Sun, 26 Feb 2012 11:39:49 +0000 (+0000) Subject: Fixes bug 34723: applies the English language to CSS/JS both as a user subpage and... X-Git-Tag: 1.31.0-rc.0~24508 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=f42c131076552cbb46de15bf6f5ad2c83cf83780;p=lhc%2Fweb%2Fwiklou.git Fixes bug 34723: applies the English language to CSS/JS both as a user subpage and a MediaWiki space page, and consequently applies LTR to JS and CSS in the textarea. --- diff --git a/includes/Title.php b/includes/Title.php index 9e7ea4dd8d..a2a3fa475c 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -4475,7 +4475,7 @@ class Title { if ( $this->isSpecialPage() ) { // special pages are in the user language return $wgLang; - } elseif ( $this->isCssOrJsPage() ) { + } elseif ( $this->isCssOrJsPage() || $this->isCssJsSubpage() ) { // css/js should always be LTR and is, in fact, English return wfGetLangObj( 'en' ); } elseif ( $this->getNamespace() == NS_MEDIAWIKI ) {