From 165cf0530cc19ed97a6d48c2f4d1a536d3189753 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Tue, 10 Sep 2019 09:24:48 -0400 Subject: [PATCH] dev/drupal#52 Partial fix for Deprecated q variable --- CRM/Utils/System/DrupalBase.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CRM/Utils/System/DrupalBase.php b/CRM/Utils/System/DrupalBase.php index 829b3870d152..115efaebebbe 100644 --- a/CRM/Utils/System/DrupalBase.php +++ b/CRM/Utils/System/DrupalBase.php @@ -673,9 +673,7 @@ public function getCurrentLanguage() { * @return bool */ public function isFrontEndPage() { - // Get the menu items. - $args = explode('?', $_GET['q']); - $path = $args[0]; + $path = CRM_Utils_System::getUrlPath(); // Get the menu for above URL. $item = CRM_Core_Menu::get($path);