From 26be0d8d7f547256504f4ed8dacc1b871a4f304f Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Wed, 23 Aug 2006 04:31:30 +0000 Subject: [PATCH] #77479 by RayZ. drupal_is_front_page() now works if the front page path is an alias. --- includes/path.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/path.inc b/includes/path.inc index 9112cb14653..bc11198b426 100644 --- a/includes/path.inc +++ b/includes/path.inc @@ -197,5 +197,5 @@ function drupal_set_title($title = NULL) { function drupal_is_front_page() { // As drupal_init_path updates $_GET['q'] with the 'site_frontpage' path, // we can check it against the 'site_frontpage' variable. - return $_GET['q'] == variable_get('site_frontpage', 'node'); + return $_GET['q'] == drupal_get_normal_path(variable_get('site_frontpage', 'node')); }