check out drupal_is_front_page, please. The function looks completely different.
drupal_is_front_page
sorry, i don't understand this line
$frontpage = variable_get('site_frontpage', '/');
shouldn't this:
$frontpage = variable_get('site_frontpage', 'node');
if not this looks like a redirection loop from http://www.example.com/ to http://www.example.com/, isn't it?
You could be onto something there... I'll try it out later - but the logic sounds right. I wonder why I did that...
Just noticed in the API - there is a drupal_is_front_page() command... I'm updating 4.7 (dev) to use this. I'll roll this into 5.0 too when I get a minute.
This was rolled in a while ago - there is currently another issue (http://drupal.org/node/124704) open regarding an endless loop on the frontpage.
this one is a duplicate of #124704, where i posted a patch for this.
Comments
Comment #1
hass commentedsorry, i don't understand this line
shouldn't this:
if not this looks like a redirection loop from http://www.example.com/ to http://www.example.com/, isn't it?
Comment #2
nicholasthompsonYou could be onto something there... I'll try it out later - but the logic sounds right. I wonder why I did that...
Comment #3
nicholasthompsonJust noticed in the API - there is a drupal_is_front_page() command... I'm updating 4.7 (dev) to use this. I'll roll this into 5.0 too when I get a minute.
Comment #4
nicholasthompsonThis was rolled in a while ago - there is currently another issue (http://drupal.org/node/124704) open regarding an endless loop on the frontpage.
Comment #5
hass commentedthis one is a duplicate of #124704, where i posted a patch for this.