Skip to content

Commit

Permalink
Merge pull request #18397 from swastikpareek/issue-1987-fix-isFrontPa…
Browse files Browse the repository at this point in the history
…ge-function

dev/core#1987: Fix Drupal Base 'isFrontEndPage' function to consider Drupal public page for FE theme
  • Loading branch information
seamuslee001 authored Sep 24, 2020
2 parents 8ea41c7 + 446bb2d commit 95c42d8
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 95c42d8

Please sign in to comment.