From 4c105718a825bafc64f98dd83dd2ff5f2bc58603 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 11 Jan 2014 19:32:38 +0000 Subject: [PATCH] fixed uncaught exeption "Serialization of Closure is not allowed", when minifying is enabled --- phpgwapi/inc/min/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/min/config.php b/phpgwapi/inc/min/config.php index ee3d27f30f..52b29dd587 100755 --- a/phpgwapi/inc/min/config.php +++ b/phpgwapi/inc/min/config.php @@ -165,7 +165,7 @@ $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'] = function($in){ return str_replace(array('"use strict";', '"use strict"'), '', $in);}; +$min_serveOptions['postprocessor'] = create_function('$in', 'return str_replace(array(\'"use strict";\', \'"use strict"\'), \'\', $in);'); /** * If you upload files from Windows to a non-Windows server, Windows may report