fix default "EGroupware" site_title for new login page

This commit is contained in:
Ralf Becker 2019-08-09 15:52:19 +02:00
parent 1403c7ffd0
commit 30a2c4d90f
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class Login
$tmpl = new Template(EGW_SERVER_ROOT.'/api/templates/default');
$tmpl->set_file(array('login_form' => Api\Header\UserAgent::mobile()?'login_mobile.tpl':'login.tpl'));
}
$tmpl->set_var('lang_message', empty(strip_tags($GLOBALS['loginscreenmessage'])) || $GLOBALS['loginscreenmessage'] === 'EGroupware' ?
$tmpl->set_var('lang_message', in_array(strip_tags($GLOBALS['loginscreenmessage']), ['', 'EGroupware']) ?
lang('Your Collaboration Platform') : $GLOBALS['loginscreenmessage']);
// did admin disable 2FA

View File

@ -208,7 +208,7 @@ body #egw_fw_sidebar #egw_fw_sidemenu .egw_fw_ui_category_active{background-colo
{
if (empty($GLOBALS['loginscreenmessage']))
{
$GLOBALS['loginscreenmessage'] = '<h1>'.$GLOBALS['egw_info']['server']['site_title'].'</h1>';
$GLOBALS['loginscreenmessage'] = $GLOBALS['egw_info']['server']['site_title'];
}
unset($GLOBALS['egw_info']['server']['site_title']);