Fixed a bug that could result in an invalid path being picked for default

template path if the theme name can be found >1 inside the path.

Ex. /home/foobar/www/egw/app/foo
would become
/home/defaultbar/www/egw/app/default
This commit is contained in:
iliaa 2004-01-28 19:36:52 +00:00
parent 300badbfec
commit 28a0a7e01a

View File

@ -383,7 +383,7 @@
}
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_filename = $this->filename(str_replace($root.'/','',$new_filename),$new_root,2);
}
}