mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 16:29:22 +01:00
add another variant to strip the last dirctory name(should be more failsave now
This commit is contained in:
parent
1b4f5c88c7
commit
c6e057d98f
@ -401,7 +401,8 @@
|
||||
{
|
||||
// $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 = substr($root, 0, strlen($root) - strlen($GLOBALS['phpgw_info']['server']['template_set'])) . 'default';
|
||||
// $new_root = substr($root, 0, strlen($root) - strlen($GLOBALS['phpgw_info']['server']['template_set'])) . 'default';
|
||||
$new_root = dirname($root) . DIRECTORY_SEPARATOR . 'default';
|
||||
$new_filename = $this->filename(str_replace($root.'/','',$new_filename),$new_root,2);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user