r46256 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46255‎ | r46256 | r46257 >
Date:12:49, 26 January 2009
Author:malafaya
Status:deferred
Tags:
Comment:
Wikidata RTL whoes resolved
Modified paths:
  • /trunk/extensions/Wikidata/App.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/App.php
@@ -208,10 +208,12 @@
209209
210210 $wgRecordSetLanguage = 0;
211211
212 - # malafaya: This is a hack to set page RTL according to user language prefs
213 -# global $wgLang, $wgContLang, $wgIsUserRtl;
214 -# $wgIsUserRtl = $wgLang->isRTL();
215 -# $wgContLang = $wgLang; // Set page contents language the same as user language (it will only affect RTL header)
 212+ # malafaya: Set RTL according to user language
 213+ global $wgLang, $wgOut;
 214+ if ($wgLang->isRTL())
 215+ {
 216+ $wgOut->addHTML('<style type="text/css">/*<![CDATA[*/ @import "/index.php?title=MediaWiki:Gadget-rtl.css&action=raw&ctype=text/css"; /*]]>*/</style>');
 217+ }
216218
217219 return true;
218220 }

Status & tagging log