From edab2bd248a50b9b328d8d014ef6d976fd61ad57 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 28 Aug 2011 12:48:31 +0000 Subject: [PATCH] $GLOBALS['egw_info']['server']['lang_ctimes'] is now an array --- phpgwapi/lang.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/lang.php b/phpgwapi/lang.php index 032e6b61c8..607f61e714 100644 --- a/phpgwapi/lang.php +++ b/phpgwapi/lang.php @@ -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!'); // 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 Header('Content-Type: text/javascript; charset=utf-8');