Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
446bb2d5
Commit
446bb2d5
authored
4 years ago
by
Swastik Pareek
Browse files
Options
Downloads
Patches
Plain Diff
#1987
Fix Drupal Base 'isFrontEndPage' function
parent
383d2acc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Utils/System/DrupalBase.php
+2
-1
2 additions, 1 deletion
CRM/Utils/System/DrupalBase.php
with
2 additions
and
1 deletion
CRM/Utils/System/DrupalBase.php
+
2
−
1
View file @
446bb2d5
...
...
@@ -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'
]));
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment