From 9d193924bdaac93976cd53998d1fdffdea9f15eb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 31 Mar 2017 18:05:20 +0200 Subject: [PATCH] Fix bad constants --- htdocs/main.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index bc1af5cc340..c8dac96f11e 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1144,14 +1144,14 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs { // JQuery. Must be before other includes print ''."\n"; - if (constant('JS_JQUERY')) print ''."\n"; + if (defined('JS_JQUERY')) print ''."\n"; else print ''."\n"; if (! empty($conf->global->MAIN_FEATURES_LEVEL)) { - if (constant('JS_JQUERY_MIGRATE')) print ''."\n"; + if (defined('JS_JQUERY_MIGRATE')) print ''."\n"; else print ''."\n"; } - if (constant('JS_JQUERY_UI')) print ''."\n"; + if (defined('JS_JQUERY_UI')) print ''."\n"; else print ''."\n"; if (! defined('DISABLE_JQUERY_TABLEDND')) print ''."\n"; if (! defined('DISABLE_JQUERY_TIPTIP')) print ''."\n";