diff --git a/login.php b/login.php index cd4679e9a5..5594da1175 100755 --- a/login.php +++ b/login.php @@ -36,7 +36,6 @@ Header('Location: setup/index.php'); exit; } - $GLOBALS['egw_info']['server']['template_dir'] = EGW_SERVER_ROOT . '/phpgwapi/templates/' . $GLOBALS['egw_info']['login_template_set']; $tmpl = CreateObject('phpgwapi.Template', $GLOBALS['egw_info']['server']['template_dir']); @@ -343,6 +342,6 @@ * And if the register link must be placed * \********************************************************/ - parse_login_screen(); + parse_login_screen($extra_vars); ?> diff --git a/phpgwapi/templates/idots/login.inc.php b/phpgwapi/templates/idots/login.inc.php index 46a0de4aa6..43b21d3b0d 100755 --- a/phpgwapi/templates/idots/login.inc.php +++ b/phpgwapi/templates/idots/login.inc.php @@ -42,7 +42,7 @@ '; } - function parse_login_screen() + function parse_login_screen($extra_vars) { $tmpl = CreateObject('phpgwapi.Template', $GLOBALS['egw_info']['server']['template_dir']); $tmpl->set_file(array('login_form' => 'login.tpl'));