Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f39c1e94
Commit
f39c1e94
authored
Jul 18, 2006
by
Neil Drumm
Browse files
#70177
by RobRoy and beginner, fix return values of drupal_is_front_page.
parent
31bb8ef3
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/path.inc
View file @
f39c1e94
...
...
@@ -196,6 +196,6 @@ function drupal_set_title($title = NULL) {
*/
function
drupal_is_front_page
()
{
// As drupal_init_path updates $_GET['q'] with the 'site_frontpage' path,
//
rely on $_REQUEST to verify the original value of 'q'
.
return
!
isset
(
$_REQUEST
[
'q'
]
);
//
we can check it against the 'site_frontpage' variable
.
return
$_GET
[
'q'
]
==
variable_get
(
'site_frontpage'
,
'node'
);
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment