Skip to content
Snippets Groups Projects
Commit 446bb2d5 authored by Swastik Pareek's avatar Swastik Pareek
Browse files

#1987 Fix Drupal Base 'isFrontEndPage' function

parent 383d2acc
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.
Please register or to comment