From 2629c4bd8208cb7016b20b80b0e9ec4ab761a10c Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Tue, 27 Mar 2001 13:13:42 +0000 Subject: 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. --- error.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/error.php b/error.php index 180f16475..11a61dfa2 100644 --- a/error.php +++ b/error.php @@ -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 "

Oops, an error occured!

\n"; print "Processed output:
\n"; print " * $message
\n"; - print " * Return to the main page.\n"; + print " * Return to the main page.\n"; print "\n"; } -- cgit v1.2.3