diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 2dd98df36f..d4c1efcb25 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -74,9 +74,9 @@ foreach($_SESSION['egw_included_files'] as $file) { //echo "

about to include $file

\n"; - if (basename($file) == 'navbar.inc.php') break; // the rest is not needed and makes only problems - include_once($file); + + if (basename($file) == 'class.egw_framework.inc.php') break; // the rest is not needed and makes only problems } $GLOBALS['egw'] = unserialize($_SESSION['egw_object_cache']); diff --git a/phpgwapi/templates/idots/class.idots_framework.inc.php b/phpgwapi/templates/idots/class.idots_framework.inc.php index 133f2861f4..425021d652 100644 --- a/phpgwapi/templates/idots/class.idots_framework.inc.php +++ b/phpgwapi/templates/idots/class.idots_framework.inc.php @@ -46,8 +46,6 @@ class idots_framework extends egw_framework function idots_framework($template='idots') { $this->egw_framework($template); // call the constructor of the extended class - - $this->tpl =& new Template(EGW_TEMPLATE_DIR); } /** @@ -64,6 +62,9 @@ class idots_framework extends egw_framework $content = ob_get_contents(); ob_end_clean(); + // the instanciation of the template has to be here and not in the constructor, + // as the old Template class has problems if restored from the session (php-restore) + $this->tpl =& new Template(EGW_TEMPLATE_DIR); $this->tpl->set_file(array('_head' => 'head.tpl')); $this->tpl->set_block('_head','head');