Commit f39c1e94 authored by drumm's avatar drumm
Browse files

#70177 by RobRoy and beginner, fix return values of drupal_is_front_page.

parent 31bb8ef3
...@@ -196,6 +196,6 @@ function drupal_set_title($title = NULL) { ...@@ -196,6 +196,6 @@ function drupal_set_title($title = NULL) {
*/ */
function drupal_is_front_page() { function drupal_is_front_page() {
// As drupal_init_path updates $_GET['q'] with the 'site_frontpage' path, // As drupal_init_path updates $_GET['q'] with the 'site_frontpage' path,
// rely on $_REQUEST to verify the original value of 'q'. // we can check it against the 'site_frontpage' variable.
return !isset($_REQUEST['q']); return $_GET['q'] == variable_get('site_frontpage', 'node');
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment