mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-24 14:58:52 +01:00
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:
parent
300badbfec
commit
28a0a7e01a
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user