summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-03-27 13:13:42 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-03-27 13:13:42 +0000
commit2629c4bd8208cb7016b20b80b0e9ec4ab761a10c (patch)
tree09f4d83bf3f676baa3ad467d39b46893367d1785
parentcb5bbdee20c649e5287fd9b90ce2f7215a6dcdec (diff)
downloadbrdo-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.php4
1 files 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 "<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";
}