Skip to content

Commit

Permalink
dev/drupal#52 Partial fix for Deprecated q variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mlutfy authored and seamuslee001 committed Sep 10, 2019
1 parent e3e784d commit 165cf05
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CRM/Utils/System/DrupalBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 165cf05

Please sign in to comment.