From 734b185fe416da46bb278cfa48e71e40e5ef4e79 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 20 Feb 2007 01:15:40 +0100 Subject: [PATCH] [svn r11157] Added non-filtering param to the Display::display_error_message() calls to avoid link translation --- main/inc/lib/main_api.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/inc/lib/main_api.lib.php b/main/inc/lib/main_api.lib.php index e2eb753317..e4b444b2ca 100644 --- a/main/inc/lib/main_api.lib.php +++ b/main/inc/lib/main_api.lib.php @@ -1336,7 +1336,7 @@ function api_not_allowed() $form->addElement('submit','submitAuth',get_lang('Ok')); $test = $form->return_form(); echo '
'; - Display :: display_error_message("

Either you are not allowed here or your session has expired.

Please try to login again using the following form:
".$test); + Display :: display_error_message("

Either you are not allowed here or your session has expired.

Please try to login again using the following form:
".$test,false); echo '

'; $_SESSION['request_uri'] = $_SERVER['REQUEST_URI']; Display::display_footer(); @@ -1344,7 +1344,7 @@ function api_not_allowed() }else{ //if no course ID was included in the requested URL, redirect to homepage echo '
'; - Display :: display_error_message('

Either you are not allowed here or your session has expired.

Please try to login again from the homepage
'); + Display :: display_error_message('

Either you are not allowed here or your session has expired.

Please try to login again from the homepage
',false); echo '

'; Display::display_footer(); die();