Skip to content

Commit

Permalink
FIX #30274 : Add the include before executing dolibarr_set_const (#30320
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ksar-ksar authored Jul 10, 2024
1 parent 8636259 commit 05cfd3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/main.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,7 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr
}
// Refresh value of MAIN_IHM_PARAMS_REV before forging the parameter line.
if (GETPOST('dol_resetcache')) {
include_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
dolibarr_set_const($db, "MAIN_IHM_PARAMS_REV", ((int) $conf->global->MAIN_IHM_PARAMS_REV) + 1, 'chaine', 0, '', $conf->entity);
}

Expand Down

0 comments on commit 05cfd3d

Please sign in to comment.