mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-17 03:19:23 +01:00
taking modification time of api/etemplate.php script into account too for .xet cache-buster
This commit is contained in:
parent
c81183f5f6
commit
e3113455cc
@ -214,7 +214,8 @@ class Template extends Etemplate\Widget
|
|||||||
{
|
{
|
||||||
return $GLOBALS['egw_info']['server']['webserver_url'].'/api/etemplate.php'.
|
return $GLOBALS['egw_info']['server']['webserver_url'].'/api/etemplate.php'.
|
||||||
($path[0] === '/' ? $path : preg_replace('#^'.self::VFS_TEMPLATE_PATH.'#', '',
|
($path[0] === '/' ? $path : preg_replace('#^'.self::VFS_TEMPLATE_PATH.'#', '',
|
||||||
Api\Vfs::parse_url($path, PHP_URL_PATH))).'?'.filemtime(self::rel2path($path));
|
Api\Vfs::parse_url($path, PHP_URL_PATH))).'?'.
|
||||||
|
max(filemtime(self::rel2path($path)), filemtime(EGW_SERVER_ROOT.'/api/etemplate.php'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user