From ee86b7bcefe182574dac69a4bb13a35d16302446 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 31 Mar 2017 17:50:54 +0200 Subject: [PATCH] Avoid javascript warning when in stable mode. --- htdocs/main.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index ab156334c4f..bc1af5cc340 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1146,8 +1146,11 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs print ''."\n"; if (constant('JS_JQUERY')) print ''."\n"; else print ''."\n"; - if (constant('JS_JQUERY_MIGRATE')) print ''."\n"; - else print ''."\n"; + if (! empty($conf->global->MAIN_FEATURES_LEVEL)) + { + if (constant('JS_JQUERY_MIGRATE')) print ''."\n"; + else print ''."\n"; + } if (constant('JS_JQUERY_UI')) print ''."\n"; else print ''."\n"; if (! defined('DISABLE_JQUERY_TABLEDND')) print ''."\n";