Fixes bug 34723: applies the English language to CSS/JS both as a user subpage and...
authorAmir E. Aharoni <amire80@users.mediawiki.org>
Sun, 26 Feb 2012 11:39:49 +0000 (11:39 +0000)
committerAmir E. Aharoni <amire80@users.mediawiki.org>
Sun, 26 Feb 2012 11:39:49 +0000 (11:39 +0000)
includes/Title.php

index 9e7ea4d..a2a3fa4 100644 (file)
@@ -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 ) {