diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-07-18 07:59:51 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-07-18 07:59:51 +0000 |
commit | f39c1e9454d7e57a2dea1edcbbbd8baa0efde346 (patch) | |
tree | a147789c34b6e77021555752ed0f5d57f328913c | |
parent | 31bb8ef394eae49218f56b16add3e4b8a5da2c78 (diff) | |
download | brdo-f39c1e9454d7e57a2dea1edcbbbd8baa0efde346.tar.gz brdo-f39c1e9454d7e57a2dea1edcbbbd8baa0efde346.tar.bz2 |
#70177 by RobRoy and beginner, fix return values of drupal_is_front_page.
-rw-r--r-- | includes/path.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/path.inc b/includes/path.inc index 665f05a3a..f2c5141fe 100644 --- a/includes/path.inc +++ b/includes/path.inc @@ -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'); } |