Patch from kevindouglas@yahoo.com to re-enable the most recent change here (error when selecting idsociety template, etc.)

This commit is contained in:
Miles Lott 2004-02-06 22:32:46 +00:00
parent 626be11f90
commit bade598435

View File

@ -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);
}
}