Commit 9d29ddea authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(language) Adapt code to new Language class

issue #5814
parent 1d189bf6
......@@ -86,7 +86,7 @@ class expiredUserPostpone extends standAlonePage
$smarty->append('css_files', get_template_path('login.css'));
$lang = session::global_get('lang');
$smarty->assign('lang', preg_replace('/_.*$/', '', $lang));
$smarty->assign('rtl', language_is_rtl($lang));
$smarty->assign('rtl', Language::isRTL($lang));
$smarty->display(get_template_path('headers.tpl'));
$smarty->assign('version', FD_VERSION);
......
......@@ -72,7 +72,7 @@ function initiateRPCSession($id = NULL, $ldap = NULL, $user = NULL, $pwd = NULL)
$config = session::global_get('config');
$plist = session::global_get('plist');
$ui = session::global_get('ui');
initLanguage();
Language::init();
} else {
$config = new config(CONFIG_DIR."/".CONFIG_FILE, $BASE_DIR);
if ($ldap === NULL) {
......
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