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";