forked from extern/egroupware
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'];
|
$extra['app'] = $GLOBALS['egw_info']['flags']['currentapp'];
|
||||||
|
|
||||||
// Load LABjs ONCE here
|
// 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".
|
$java_script .= '<script type="text/javascript" src="'.$GLOBALS['egw_info']['server']['webserver_url'].
|
||||||
'<script type="text/javascript" src="'. $GLOBALS['egw_info']['server']['webserver_url'].'/phpgwapi/js/jsapi/egw.js" id="egw_script_id"';
|
'/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
|
// add values of extra parameter and class var as data attributes to script tag of egw.js
|
||||||
foreach($extra+self::$extra as $name => $value)
|
foreach($extra+self::$extra as $name => $value)
|
||||||
|
Loading…
Reference in New Issue
Block a user