mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-10-05 17:52:03 +02:00
$GLOBALS['egw_info']['server']['lang_ctimes'] is now an array
This commit is contained in:
parent
4c23b3766e
commit
edab2bd248
@ -27,7 +27,7 @@ if (!preg_match('/^[a-z0-9_]+$/i', $_GET['app'])) die('No valid application-name
|
|||||||
if (!preg_match('/^[a-z]{2}(-[a-z]{2})?$/i', $_GET['lang'])) die('No valid lang-name given!');
|
if (!preg_match('/^[a-z]{2}(-[a-z]{2})?$/i', $_GET['lang'])) die('No valid lang-name given!');
|
||||||
|
|
||||||
// use an etag with app, lang and a hash over the creation-times of all lang-files
|
// use an etag with app, lang and a hash over the creation-times of all lang-files
|
||||||
$etag = '"'.$_GET['app'].'-'.$_GET['lang'].'-'.md5($GLOBALS['egw_info']['server']['lang_ctimes']).'"';
|
$etag = '"'.$_GET['app'].'-'.$_GET['lang'].'-'.md5(serialize($GLOBALS['egw_info']['server']['lang_ctimes'])).'"';
|
||||||
|
|
||||||
// headers to allow caching of one month
|
// headers to allow caching of one month
|
||||||
Header('Content-Type: text/javascript; charset=utf-8');
|
Header('Content-Type: text/javascript; charset=utf-8');
|
||||||
|
Loading…
Reference in New Issue
Block a user