From ee73ec3d3cd115f012d93a94e73921b5b56ec9e4 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Mon, 25 Sep 2017 12:28:17 +0200 Subject: [PATCH] MDL-60219 lti: Replace pagelayout frametop with incourse --- mod/lti/view.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/lti/view.php b/mod/lti/view.php index 2288acff77e..0bbf63d8f84 100644 --- a/mod/lti/view.php +++ b/mod/lti/view.php @@ -87,14 +87,14 @@ $PAGE->set_url($url); $launchcontainer = lti_get_launch_container($lti, $toolconfig); if ($launchcontainer == LTI_LAUNCH_CONTAINER_EMBED_NO_BLOCKS) { - $PAGE->set_pagelayout('frametop'); // Most frametops don't include footer, and pre-post blocks. + $PAGE->set_pagelayout('incourse'); $PAGE->blocks->show_only_fake_blocks(); // Disable blocks for layouts which do include pre-post blocks. } else if ($launchcontainer == LTI_LAUNCH_CONTAINER_REPLACE_MOODLE_WINDOW) { if (!$forceview) { $url = new moodle_url('/mod/lti/launch.php', array('id' => $cm->id)); redirect($url); } -} else { +} else { // Handles LTI_LAUNCH_CONTAINER_DEFAULT, LTI_LAUNCH_CONTAINER_EMBED, LTI_LAUNCH_CONTAINER_WINDOW. $PAGE->set_pagelayout('incourse'); }