From 2ade83cb87762396eb5e0dd24d91bfc460a21140 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 16 Nov 2020 11:41:09 -0500 Subject: [PATCH] XAPI: Fix message in launch attempts - refs BT#16742 --- plugin/xapi/tincan/stats_attempts.ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/xapi/tincan/stats_attempts.ajax.php b/plugin/xapi/tincan/stats_attempts.ajax.php index e5dcdee769..8339518d9a 100644 --- a/plugin/xapi/tincan/stats_attempts.ajax.php +++ b/plugin/xapi/tincan/stats_attempts.ajax.php @@ -38,7 +38,7 @@ $toolLaunch = $em->find( $student = api_get_user_entity($request->request->getInt('student')); if (!$toolLaunch || !$student) { - echo Display::return_message(get_lang('NoResults'), 'error'); + echo Display::return_message(get_lang('NotAllowed'), 'error'); exit; } @@ -82,7 +82,7 @@ try { ) ); } catch (NotFoundException $notFoundException) { - echo Display::return_message($notFoundException->getMessage(), 'error'); + echo Display::return_message(get_lang('NoResults'), 'warning'); exit; } catch (XApiException $exception) { echo Display::return_message($exception->getMessage(), 'error');