diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-23 04:31:30 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-23 04:31:30 +0000 |
commit | 26be0d8d7f547256504f4ed8dacc1b871a4f304f (patch) | |
tree | cad96a2ca7271ad8407c27a5d5fe79d46368406e /includes | |
parent | 71e191d92501243b53d302a2b4a2f963682ee684 (diff) | |
download | brdo-26be0d8d7f547256504f4ed8dacc1b871a4f304f.tar.gz brdo-26be0d8d7f547256504f4ed8dacc1b871a4f304f.tar.bz2 |
#77479 by RayZ. drupal_is_front_page() now works if the front page path is an alias.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/path.inc b/includes/path.inc index 9112cb146..bc11198b4 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')); } |