diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-03-27 13:13:42 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-03-27 13:13:42 +0000 |
commit | 2629c4bd8208cb7016b20b80b0e9ec4ab761a10c (patch) | |
tree | 09f4d83bf3f676baa3ad467d39b46893367d1785 | |
parent | cb5bbdee20c649e5287fd9b90ce2f7215a6dcdec (diff) | |
download | brdo-2629c4bd8208cb7016b20b80b0e9ec4ab761a10c.tar.gz brdo-2629c4bd8208cb7016b20b80b0e9ec4ab761a10c.tar.bz2 |
Changed the error re-direct URL to the same as $site_url in case a user tries to access a sub-directory that does no exist.
-rw-r--r-- | error.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,7 +7,7 @@ function error_flood() { } function error_httpd() { - global $REDIRECT_STATUS, $REDIRECT_URL, $HTTP_REFERER, $HTTP_USER_AGENT; + global $REDIRECT_STATUS, $REDIRECT_URL, $HTTP_REFERER, $HTTP_USER_AGENT, $site_url; switch($REDIRECT_STATUS) { case 500: @@ -35,7 +35,7 @@ function error_httpd() { print "<H1>Oops, an error occured!</H1>\n"; print "<B>Processed output:</B><BR>\n"; print " * $message<BR>\n"; - print " * Return to the <A HREF=\"\">main page</A>.\n"; + print " * Return to the <A HREF=\"$site_url\">main page</A>.\n"; print "</PRE>\n"; } |