Skip to content

Commit

Permalink
Merge pull request #15271 from seamuslee001/dev_drupal_52
Browse files Browse the repository at this point in the history
dev/drupal#52 Partial fix for Deprecated q variable
  • Loading branch information
eileenmcnaughton authored Sep 11, 2019
2 parents e3e784d + 165cf05 commit cca4e41
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 cca4e41

Please sign in to comment.