From 14b11281ecf106e38d5670e7406d9e8dd62ccf8c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 10 Sep 2014 16:15:53 +0000 Subject: [PATCH] remove create_function in favor of a global function as it is causing - at least on some systems - permanently changing cache-ids / minified sources not to be cached --- phpgwapi/inc/min/config.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/min/config.php b/phpgwapi/inc/min/config.php index 52b29dd587..6c98487c50 100755 --- a/phpgwapi/inc/min/config.php +++ b/phpgwapi/inc/min/config.php @@ -165,7 +165,11 @@ $min_symlinks['//'.ltrim($sitePrefix, '/')] = dirname(dirname(dirname(__DIR__))) * Remove all "use strict" as we have a mixure of strict and non-strict code (mostly externals libs) * and javascript is supposed to run quicker without anyway. */ -$min_serveOptions['postprocessor'] = create_function('$in', 'return str_replace(array(\'"use strict";\', \'"use strict"\'), \'\', $in);'); +function remove_use_strict($in) +{ + return str_replace(array('"use strict";', '"use strict"'), '', $in); +} +$min_serveOptions['postprocessor'] = 'remove_use_strict'; /** * If you upload files from Windows to a non-Windows server, Windows may report