Undo last commit for now to fix bug when selecting idsociety template

This commit is contained in:
Miles Lott 2004-02-03 07:22:42 +00:00
parent 44a584790c
commit 49726e4623

View File

@ -362,13 +362,13 @@
*/ */
function filename($filename,$root='',$time=1) function filename($filename,$root='',$time=1)
{ {
if($root=='') if($root == '')
{ {
$root=$this->root; $root = $this->root;
} }
if (substr($filename, 0, 1) != '/') if(substr($filename, 0, 1) != '/')
{ {
$new_filename = $root.'/'.$filename; $new_filename = $root . '/' . $filename;
} }
else else
{ {
@ -383,7 +383,8 @@
} }
else else
{ {
$new_root = substr($root, 0, strrpos($root, $GLOBALS['phpgw_info']['server']['template_set'])).'default'; // $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_filename = $this->filename(str_replace($root.'/','',$new_filename),$new_root,2); $new_filename = $this->filename(str_replace($root.'/','',$new_filename),$new_root,2);
} }
} }