mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
"fix loginscreen-message (was depending on * for not existing)"
This commit is contained in:
parent
b29095430d
commit
7f8b7fb92f
@ -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'));
|
||||
|
Loading…
Reference in New Issue
Block a user