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 .= '
'; $pageBottom .= Display::url( get_lang('ReturnToCourseHomepage'), @@ -254,7 +254,7 @@ if (!in_array($origin, ['learnpath', 'embeddable', 'noheader'])) { } $showFooter = true; -} elseif (in_array($origin, ['embeddable', 'noheader'])) { +} elseif (in_array($origin, ['embeddable', 'mobileapp'])) { if (api_is_allowed_to_session_edit()) { Exercise::cleanSessionVariables(); } diff --git a/main/exercise/exercise_submit.php b/main/exercise/exercise_submit.php index ec788ae5b0..b544735b91 100755 --- a/main/exercise/exercise_submit.php +++ b/main/exercise/exercise_submit.php @@ -79,7 +79,7 @@ if ('true' === api_get_setting('enable_record_audio')) { } $zoomOptions = api_get_configuration_value('quiz_image_zoom'); -if (isset($zoomOptions['options']) && !in_array($origin, ['embeddable', 'noheader'])) { +if (isset($zoomOptions['options']) && !in_array($origin, ['embeddable', 'mobileapp'])) { $options = $zoomOptions['options']; $htmlHeadXtra[] = ''; $htmlHeadXtra[] = '