Skip to content

Commit

Permalink
dev/core#1987 Fix Drupal Base 'isFrontEndPage' function
Browse files Browse the repository at this point in the history
  • Loading branch information
swastikpareek committed Sep 7, 2020
1 parent 383d2ac commit 446bb2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Utils/System/DrupalBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,8 @@ public function isFrontEndPage() {

// Get the menu for above URL.
$item = CRM_Core_Menu::get($path);
return !empty($item['is_public']);
// In case the URL is not a civicrm page (a drupal page) we set the FE theme to TRUE - covering the corner case
return (empty($item) || !empty($item['is_public']));
}

/**
Expand Down

0 comments on commit 446bb2d

Please sign in to comment.