BUG 9510 Bug has code errors SOLVED

I add code correcty
This commit is contained in:
Brayan Osmar Pereyra Suxo
2012-08-08 12:46:26 -04:00
parent f973c6ac29
commit 1edfcd68cd
10 changed files with 99 additions and 133 deletions

View File

@@ -54,7 +54,7 @@ class serverConf {
private $lanDirection;
private $lanLanguage;
public $workspaces = array();
public $rtlLang = array('ar','he','es');
public $rtlLang = array('ar','iw','fa');
public function __construct() {
@@ -403,13 +403,9 @@ class serverConf {
}
}
function isRtl ($lang = SYS_LANG) {
$lang = substr($lang, 0, 2);
if (in_array($lang, $this->rtlLang)) {
return true;
} else {
return false;
}
function isRtl ($lang = SYS_LANG) {
$lang = substr($lang, 0, 2);
return in_array($lang, $this->rtlLang);
}