From 7f8b7fb92f9b5ac9af7f9f1b0a510c5f3eff7905 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 17 May 2007 19:04:02 +0000 Subject: [PATCH] "fix loginscreen-message (was depending on * for not existing)" --- login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/login.php b/login.php index bf7f8e3110..b5c2f91398 100755 --- a/login.php +++ b/login.php @@ -311,11 +311,11 @@ $GLOBALS['egw']->translation->init(); // this will set the language according to the (new) set prefs $GLOBALS['egw']->translation->add_app('login'); $GLOBALS['egw']->translation->add_app('loginscreen'); - if(lang('loginscreen_message') == 'loginscreen_message*') + if($GLOBALS['egw']->translation->translate('loginscreen_message',false,'') == 'loginscreen_message') { $GLOBALS['egw']->translation->add_app('loginscreen','en'); // trying the en one } - if(lang('loginscreen_message') != 'loginscreen_message*') + if($GLOBALS['egw']->translation->translate('loginscreen_message',false,'') != 'loginscreen_message') { // for now store login message in globals so it is available for the login.inc.php $GLOBALS['loginscreenmessage']=stripslashes(lang('loginscreen_message'));