From a0f868d520a6f6e0973419d640da6b6038805b79 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Fri, 7 Feb 2025 10:31:00 +0100 Subject: [PATCH] NEW: add const to not include default lib_head.js in top_htmlhead with DISABLE_LIB_HEAD_JS --- htdocs/main.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 9b126b49724..ae62d26c0b0 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -2216,7 +2216,9 @@ function top_htmlhead($head, $title = '', $disablejs = 0, $disablehead = 0, $arr // Global js function print ''."\n"; - print ''."\n"; + if (!defined('DISABLE_LIB_HEAD_JS')) { + print '' . "\n"; + } // Leaflet TODO use dolibarr files if (getDolGlobalString('MAIN_USE_GEOPHP')) {