Skip to content

Commit

Permalink
Merge pull request #15268 from mlutfy/partialFixDrupal8q-518
Browse files Browse the repository at this point in the history
dev/drupal#52 Partial fix for Deprecated q variable
  • Loading branch information
seamuslee001 authored Sep 10, 2019
2 parents 13c8d37 + 9d350db commit 261ebbd
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 261ebbd

Please sign in to comment.