From fd276eb3b7652e855925f03cf5ee8caa5aa60e56 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 10 May 2012 08:43:40 +0000 Subject: [PATCH] js stuff is not needed by login page and gives errors --- phpgwapi/templates/idots/class.idots_framework.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/templates/idots/class.idots_framework.inc.php b/phpgwapi/templates/idots/class.idots_framework.inc.php index 5295f1ada9..dd4b6d30cb 100644 --- a/phpgwapi/templates/idots/class.idots_framework.inc.php +++ b/phpgwapi/templates/idots/class.idots_framework.inc.php @@ -64,7 +64,8 @@ class idots_framework extends egw_framework { parent::__construct($template); // call the constructor of the extended class - $GLOBALS['egw_info']['flags']['js_link_registry'] = true; + // js stuff is not needed by login page and gives errors + $GLOBALS['egw_info']['flags']['js_link_registry'] = $GLOBALS['egw_info']['flags']['currentapp'] !== 'login'; $this->tplsav2 = new tplsavant2(); $this->tplsav2->set_tpl_path(EGW_SERVER_ROOT.SEP.'phpgwapi'.SEP.'templates'.SEP.'idots');