mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
fix URL if custom template from VFS is used
This commit is contained in:
parent
3619bd6ae1
commit
ef1239b017
@ -213,7 +213,8 @@ class Template extends Etemplate\Widget
|
||||
public static function rel2url($path)
|
||||
{
|
||||
return $GLOBALS['egw_info']['server']['webserver_url'].'/api/etemplate.php'.
|
||||
($path[0] === '/' ? $path : Api\Vfs::parse_url($path, PHP_URL_PATH)).'?'.filemtime(self::rel2path($path));
|
||||
($path[0] === '/' ? $path : preg_replace('#^'.self::VFS_TEMPLATE_PATH.'#', '',
|
||||
Api\Vfs::parse_url($path, PHP_URL_PATH))).'?'.filemtime(self::rel2path($path));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -285,4 +286,4 @@ if ($GLOBALS['egw_info']['flags']['debug'] == 'etemplate_widget_template')
|
||||
header('Content-Type: text/xml');
|
||||
echo $template->toXml();
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user