From 353a7c00734cdd4a50e8a9db7c29a02ac3fcb9f6 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 30 Aug 2005 09:30:44 +0000 Subject: [PATCH] Fix for bug 3958 and google overactivity --- lib/weblib.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/weblib.php b/lib/weblib.php index e8cdff75e6e..05cdb7c798a 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2284,6 +2284,8 @@ function print_scale_menu_helpbutton($courseid, $scale) { function error ($message, $link="") { global $CFG, $SESSION; + header('HTTP/1.0 404 Not Found'); + print_header(get_string("error")); echo "
"; @@ -2301,6 +2303,9 @@ function error ($message, $link="") { } print_continue($link); print_footer(); + for ($i=0;$i<512;$i++) { // Padding to help IE work with 404 + echo ' '; + } die; }