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 '
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 '
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 '