mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
adding cache-busters to LABjs and egw.js
This commit is contained in:
parent
d0898a33c3
commit
54c0cd0fa3
@ -1419,8 +1419,10 @@ if ($app == 'home') continue;
|
||||
$extra['app'] = $GLOBALS['egw_info']['flags']['currentapp'];
|
||||
|
||||
// Load LABjs ONCE here
|
||||
$java_script .= '<script type="text/javascript" src="'. $GLOBALS['egw_info']['server']['webserver_url'].'/phpgwapi/js/labjs/LAB.src.js"'." ></script>\n".
|
||||
'<script type="text/javascript" src="'. $GLOBALS['egw_info']['server']['webserver_url'].'/phpgwapi/js/jsapi/egw.js" id="egw_script_id"';
|
||||
$java_script .= '<script type="text/javascript" src="'.$GLOBALS['egw_info']['server']['webserver_url'].
|
||||
'/phpgwapi/js/labjs/LAB.src.js?'.filemtime(EGW_SERVER_ROOT.'/phpgwapi/js/labjs/LAB.src.js')."\"></script>\n".
|
||||
'<script type="text/javascript" src="'.$GLOBALS['egw_info']['server']['webserver_url'].
|
||||
'/phpgwapi/js/jsapi/egw.js?'.filemtime(EGW_SERVER_ROOT.'/phpgwapi/js/jsapi/egw.js').'" id="egw_script_id"';
|
||||
|
||||
// add values of extra parameter and class var as data attributes to script tag of egw.js
|
||||
foreach($extra+self::$extra as $name => $value)
|
||||
|
Loading…
Reference in New Issue
Block a user