#77479 by RayZ. drupal_is_front_page() now works if the front page path is an alias.

5.x
Neil Drumm 2006-08-23 04:31:30 +00:00
parent 71e191d925
commit 26be0d8d7f
1 changed files with 1 additions and 1 deletions

View File

@ -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'));
}