From bade5984355cb4eb7e20eb194d4f47a3209a53ff Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 6 Feb 2004 22:32:46 +0000 Subject: [PATCH] Patch from kevindouglas@yahoo.com to re-enable the most recent change here (error when selecting idsociety template, etc.) --- phpgwapi/inc/class.Template.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.Template.inc.php b/phpgwapi/inc/class.Template.inc.php index 1f85c02d44..49087df7ad 100644 --- a/phpgwapi/inc/class.Template.inc.php +++ b/phpgwapi/inc/class.Template.inc.php @@ -383,8 +383,9 @@ } else { +// $new_root = str_replace($GLOBALS['phpgw_info']['server']['template_set'],'default',$root); // $new_root = substr($root, 0, strrpos($root, $GLOBALS['phpgw_info']['server']['template_set'])).'default'; - $new_root = str_replace($GLOBALS['phpgw_info']['server']['template_set'],'default',$root); + $new_root = substr($root, 0, strlen($root) - strlen($GLOBALS['phpgw_info']['server']['template_set'])) . 'default'; $new_filename = $this->filename(str_replace($root.'/','',$new_filename),$new_root,2); } }