Index: trunk/extensions/Wikidata/App.php |
— | — | @@ -208,6 +208,11 @@ |
209 | 209 | |
210 | 210 | $wgRecordSetLanguage = 0; |
211 | 211 | |
| 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) |
| 216 | + |
212 | 217 | return true; |
213 | 218 | } |
214 | 219 | |