mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 14:29:02 +01:00
Undo last commit for now to fix bug when selecting idsociety template
This commit is contained in:
parent
44a584790c
commit
49726e4623
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user