From 019055a63c88237d2387eff773f8bf0d4960e868 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 25 Jul 2014 09:57:50 +0000 Subject: [PATCH] remove (un-aligned) site_title from login box and display it as loginscreenmessage, if no message is set --- pixelegg/inc/class.pixelegg_framework.inc.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pixelegg/inc/class.pixelegg_framework.inc.php b/pixelegg/inc/class.pixelegg_framework.inc.php index d8f624f342..937f139eef 100755 --- a/pixelegg/inc/class.pixelegg_framework.inc.php +++ b/pixelegg/inc/class.pixelegg_framework.inc.php @@ -68,4 +68,22 @@ class pixelegg_framework extends jdots_framework { return egw_framework::_get_css(); } + + /** + * displays a login screen + * + * Reimplemented to remove site_title from login box and display it as loginscreenmessage, if none set. + * + * @param string $extra_vars for login url + */ + function login_screen($extra_vars) + { + if (empty($GLOBALS['loginscreenmessage'])) + { + $GLOBALS['loginscreenmessage'] = '

'.$GLOBALS['egw_info']['server']['site_title'].'

'; + } + unset($GLOBALS['egw_info']['server']['site_title']); + + return parent::login_screen($extra_vars); + } }