Skip to content
Snippets Groups Projects
Unverified Commit 95c42d8b authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #18397 from swastikpareek/issue-1987-fix-isFrontPage-function

#1987: Fix Drupal Base 'isFrontEndPage' function to consider Drupal public page for FE theme
parents 8ea41c7a 446bb2d5
No related branches found
No related tags found
No related merge requests found
......@@ -660,7 +660,8 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base {
// 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']));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment