$GLOBALS['egw_info']['server']['lang_ctimes'] is now an array

This commit is contained in:
Ralf Becker 2011-08-28 12:48:31 +00:00
parent 4c23b3766e
commit edab2bd248

View File

@ -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');