From f42c131076552cbb46de15bf6f5ad2c83cf83780 Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Sun, 26 Feb 2012 11:39:49 +0000 Subject: [PATCH] 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. --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1