Author: ralfbecker
New Revision: 55675
URL: http://svn.stylite.de/viewvc/egroupware?rev=55675&view=rev
Log:
invalidate cached bundels, if files are not from new location in /api/js
Modified:
trunk/phpgwapi/inc/class.egw_framework.inc.php
— trunk/phpgwapi/inc/class.egw_framework.inc.php (original)
+++ trunk/phpgwapi/inc/class.egw_framework.inc.php Thu Apr 7 17:46:36 2016
@@ -1968,8 +1968,9 @@
unset($bundles[’.ts’]);
foreach($bundles as $name => $files)
{
-
// to facilitate move to new et2 location, can be removed after 16.1 release
-
if ($name == 'et21' && !in_array('/api/js/etemplate/etemplate2.js', $files))
-
// to facilitate move to new et2/api location, can be removed after 16.1 release
-
if ($name == 'et21' && !in_array('/api/js/etemplate/etemplate2.js', $files) ||
-
$name == 'api' && !in_array('/api/js/jquery/jquery.js', $files))
{
egw_cache::unsetTree(__CLASS__, 'bundles');
return self::bundle_js_includes($js_includes);
@@ -1982,6 +1983,7 @@
$file2bundle += array_combine($files, array_fill(0, count($files), $name));
}
}
@@ -2028,10 +2030,7 @@
}
}
}
-
//error_log(__METHOD__."(".array2string($js_includes).') debug_minify='.array2string($GLOBALS['egw_info']['server']['debug_minify']).', include_bundels='.array2string($included_bundles).' returning '.array2string(array_values(array_unique($to_include))));
return array_values(array_unique($to_include));
}
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs