Commit de82390a authored by Jonny Bradley's avatar Jonny Bradley

[FIX] RTL: Use Language class function to detect RTL (thanks luciash)

parent d38de228
...@@ -1133,7 +1133,7 @@ class MultilingualLib extends TikiLib ...@@ -1133,7 +1133,7 @@ class MultilingualLib extends TikiLib
if ($prefs['feature_multilingual'] === 'y') { if ($prefs['feature_multilingual'] === 'y') {
// Some languages need BiDi support. Add their code names here ... // Some languages need BiDi support. Add their code names here ...
if (in_array($prefs['language'], array('ar', 'he', 'fa'))) { if (Language::isRTL()) {
$prefs['feature_bidi'] = 'y'; $prefs['feature_bidi'] = 'y';
TikiLib::lib('header')->add_cssfile('styles/BiDi/BiDi.css'); TikiLib::lib('header')->add_cssfile('styles/BiDi/BiDi.css');
setCookie('rtl','y'); setCookie('rtl','y');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment