Update mymodule.css.php
This commit is contained in:
parent
8117fb7cb2
commit
7a26a1212c
@ -54,8 +54,7 @@ if (!$res) die("Include of main fails");
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||||
|
|
||||||
// Load user to have $user->conf loaded (not done by default here because of NOLOGIN constant defined) and load permission if we need to use them in CSS
|
// Load user to have $user->conf loaded (not done by default here because of NOLOGIN constant defined) and load permission if we need to use them in CSS
|
||||||
/*if (empty($user->id) && ! empty($_SESSION['dol_login']))
|
/*if (empty($user->id) && ! empty($_SESSION['dol_login'])) {
|
||||||
{
|
|
||||||
$user->fetch('',$_SESSION['dol_login']);
|
$user->fetch('',$_SESSION['dol_login']);
|
||||||
$user->getrights();
|
$user->getrights();
|
||||||
}*/
|
}*/
|
||||||
@ -65,8 +64,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
|||||||
header('Content-type: text/css');
|
header('Content-type: text/css');
|
||||||
// Important: Following code is to cache this file to avoid page request by browser at each Dolibarr page access.
|
// Important: Following code is to cache this file to avoid page request by browser at each Dolibarr page access.
|
||||||
// You can use CTRL+F5 to refresh your browser cache.
|
// You can use CTRL+F5 to refresh your browser cache.
|
||||||
if (empty($dolibarr_nocache)) header('Cache-Control: max-age=10800, public, must-revalidate');
|
if (empty($dolibarr_nocache)) {
|
||||||
else header('Cache-Control: no-cache');
|
header('Cache-Control: max-age=10800, public, must-revalidate');
|
||||||
|
} else {
|
||||||
|
header('Cache-Control: no-cache');
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user