Stamping the installed_languags.inc file with 'rtl' = false, causes 'rtl'.
[fa-stable.git] / includes / lang / language.php
index 1ec47d17766321e07abd07f3c808d3337e4622b3..2c32d84c46a23cd958935139a277794fff81e535 100644 (file)
@@ -62,7 +62,7 @@ class language
                        $this->code = $lang['code'];
                        $this->encoding = $lang['encoding'];
                        $this->version = @$lang['version'];
-                       $this->dir = isset($lang['rtl']) ? 'rtl' : 'ltr';
+                       $this->dir = (isset($lang['rtl']) && $lang['rtl'] === true) ? 'rtl' : 'ltr';
                        $locale = $path_to_root . "/lang/" . $this->code . "/locale.inc";
                        $this->is_locale_file = file_exists($locale);
                }