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();