X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Feu_cookie_compliance%2Fsrc%2FRouting%2FCheckIfEuCountryJs.php;h=7ffafc111aa3ff539f1181a774856882c3f9dadf;hp=23868e265be0051d389011d7b90f301356648582;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/eu_cookie_compliance/src/Routing/CheckIfEuCountryJs.php b/web/modules/contrib/eu_cookie_compliance/src/Routing/CheckIfEuCountryJs.php index 23868e265..7ffafc111 100644 --- a/web/modules/contrib/eu_cookie_compliance/src/Routing/CheckIfEuCountryJs.php +++ b/web/modules/contrib/eu_cookie_compliance/src/Routing/CheckIfEuCountryJs.php @@ -13,8 +13,8 @@ class CheckIfEuCountryJs { * {@inheritdoc} */ public function routes() { - $routes = array(); - if (\Drupal::moduleHandler()->moduleExists('smart_ip')) { + $routes = []; + if (\Drupal::config('eu_cookie_compliance.settings')->get('eu_only_js')) { $routes['eu_cookie_compliance.check_if_eu_country_js'] = new Route( '/eu-cookie-compliance-check', [