diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index 9b51916cee1..9057ae085bd 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -889,7 +889,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
{
print ''."\n";
}
- if (! empty($conf->global->MAIN_USE_JQUERY_DATATABLES)) // jQuery datatables
+ if (! empty($conf->global->MAIN_USE_JQUERY_DATATABLES) || (defined('REQUIRE_JQUERY_DATATABLES') && constant('REQUIRE_JQUERY_DATATABLES'))) // jQuery datatables
{
//print ''."\n";
print ''."\n";
@@ -898,7 +898,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
//print ''."\n";
print ''."\n";
}
- if (! empty($conf->global->MAIN_USE_JQUERY_MULTISELECT)) // jQuery multiselect
+ if (! empty($conf->global->MAIN_USE_JQUERY_MULTISELECT) || (defined('REQUIRE_JQUERY_MULTISELECT') && constant('REQUIRE_JQUERY_MULTISELECT'))) // jQuery multiselect
{
print ''."\n";
}
@@ -1032,7 +1032,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
print ''."\n";
}
// jQuery DataTables
- if (! empty($conf->global->MAIN_USE_JQUERY_DATATABLES))
+ if (! empty($conf->global->MAIN_USE_JQUERY_DATATABLES) || (defined('REQUIRE_JQUERY_DATATABLES') && constant('REQUIRE_JQUERY_DATATABLES')))
{
print ''."\n";
print ''."\n";
@@ -1040,7 +1040,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
print ''."\n";
}
// jQuery Multiselect
- if (! empty($conf->global->MAIN_USE_JQUERY_MULTISELECT))
+ if (! empty($conf->global->MAIN_USE_JQUERY_MULTISELECT) || (defined('REQUIRE_JQUERY_MULTISELECT') && constant('REQUIRE_JQUERY_MULTISELECT')))
{
print ''."\n";
}