diff --git a/main/exercise/exercise.php b/main/exercise/exercise.php index 04654a0889..a67c71b3fe 100644 --- a/main/exercise/exercise.php +++ b/main/exercise/exercise.php @@ -506,7 +506,7 @@ if ($is_allowedToEdit) { } } -if (!in_array($origin, ['learnpath', 'noheader'])) { +if (!in_array($origin, ['learnpath', 'mobileapp'])) { //so we are not in learnpath tool Display::display_header($nameTools, get_lang('Exercise')); if (isset($_GET['message']) && in_array($_GET['message'], ['ExerciseEdited'])) { diff --git a/main/exercise/exercise_result.php b/main/exercise/exercise_result.php index e9bdec0d9f..4235ed9291 100755 --- a/main/exercise/exercise_result.php +++ b/main/exercise/exercise_result.php @@ -89,7 +89,7 @@ $pageTop = ''; $pageBottom = ''; $pageContent = ''; -if (!in_array($origin, ['learnpath', 'embeddable', 'noheader'])) { +if (!in_array($origin, ['learnpath', 'embeddable', 'mobileapp'])) { // So we are not in learnpath tool $showHeader = true; } @@ -240,7 +240,7 @@ ExerciseLib::exercise_time_control_delete( ExerciseLib::delete_chat_exercise_session($exe_id); -if (!in_array($origin, ['learnpath', 'embeddable', 'noheader'])) { +if (!in_array($origin, ['learnpath', 'embeddable', 'mobileapp'])) { $pageBottom .= '