https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112423

Revision: 112423
Author:   amire80
Date:     2012-02-26 11:39:49 +0000 (Sun, 26 Feb 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/phase3/includes/Title.php

Modified: trunk/phase3/includes/Title.php
===================================================================
--- trunk/phase3/includes/Title.php     2012-02-26 09:37:08 UTC (rev 112422)
+++ trunk/phase3/includes/Title.php     2012-02-26 11:39:49 UTC (rev 112423)
@@ -4475,7 +4475,7 @@
                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 ) {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to