MDL-62418 tool_policy: Display blocks in Consent page when using clean
authorSara Arjona <sara@moodle.com>
Sun, 13 May 2018 18:42:04 +0000 (20:42 +0200)
committerSara Arjona <sara@moodle.com>
Sun, 13 May 2018 18:42:04 +0000 (20:42 +0200)
admin/tool/policy/classes/output/page_agreedocs.php
admin/tool/policy/index.php

index 6fb5330..82201c6 100644 (file)
@@ -295,7 +295,6 @@ class page_agreedocs implements renderable, templatable {
 
         // Page setup.
         $PAGE->set_context(context_system::instance());
-        $PAGE->set_pagelayout('standard');
         $PAGE->set_url($myurl);
         $PAGE->set_heading($SITE->fullname);
         $PAGE->set_title(get_string('policiesagreements', 'tool_policy'));
index c420c5f..4be8554 100644 (file)
@@ -41,6 +41,7 @@ $agreedocs = optional_param_array('agreedoc', null, PARAM_INT);
 $behalfid = optional_param('userid', null, PARAM_INT);
 
 $PAGE->set_context(context_system::instance());
+$PAGE->set_pagelayout('standard');
 $PAGE->set_url('/admin/tool/policy/index.php');
 $PAGE->set_popup_notification_allowed(false);