mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 11:51:43 +02:00
fix mail/js/app.min.js was not used and etemplate2.min.js included twice
This commit is contained in:
parent
b0f061ac5e
commit
c6a52a0b03
@ -2126,7 +2126,7 @@ abstract class egw_framework
|
|||||||
_debug_array(array_values($to_include));
|
_debug_array(array_values($to_include));
|
||||||
die('STOP');*/
|
die('STOP');*/
|
||||||
|
|
||||||
return array_values($to_include);
|
return array_values(array_unique($to_include));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2158,8 +2158,7 @@ abstract class egw_framework
|
|||||||
$to_include_first[] = $path . '?' . $mod;
|
$to_include_first[] = $path . '?' . $mod;
|
||||||
}
|
}
|
||||||
// for now minify does NOT support query parameters, nor php files generating javascript
|
// for now minify does NOT support query parameters, nor php files generating javascript
|
||||||
elseif ($debug_minify || $query || substr($path, -3) != '.js' ||
|
elseif ($debug_minify || $query || substr($path, -3) != '.js')
|
||||||
substr($path, -7) == '/app.js') // do NOT include app.js, as it changes from app to app
|
|
||||||
{
|
{
|
||||||
$path .= '?'. $mod.($query ? '&'.$query : '');
|
$path .= '?'. $mod.($query ? '&'.$query : '');
|
||||||
$to_include[] = $path;
|
$to_include[] = $path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user