do NOT load egw.js a second time via minifyier

This commit is contained in:
Ralf Becker 2014-01-10 16:58:50 +00:00
parent 87ea75a75b
commit 3fe9c78c26

View File

@ -1604,6 +1604,8 @@ abstract class egw_framework
$max_modified = 0; $max_modified = 0;
foreach(self::$js_include_mgr->get_included_files($clear_files) as $path) foreach(self::$js_include_mgr->get_included_files($clear_files) as $path)
{ {
if ($path == '/phpgwapi/js/jsapi/egw.js') continue; // loaded via own tag, and we must not load it twice!
$query = ''; $query = '';
list($path,$query) = explode('?',$path,2); list($path,$query) = explode('?',$path,2);
if (($mod = filemtime(EGW_SERVER_ROOT.$path)) > $max_modified) $max_modified = $mod; if (($mod = filemtime(EGW_SERVER_ROOT.$path)) > $max_modified) $max_modified = $mod;