MDL-62418 tool_policy: Display blocks in user policies and agreements
authorMihail Geshoski <mihail@moodle.com>
Mon, 14 May 2018 06:18:10 +0000 (14:18 +0800)
committerMihail Geshoski <mihail@moodle.com>
Mon, 14 May 2018 06:18:10 +0000 (14:18 +0800)
admin/tool/policy/user.php

index 889934c..56b5acb 100644 (file)
@@ -42,6 +42,7 @@ if ($userid != $USER->id) {
 }
 
 $PAGE->set_context($context);
 }
 
 $PAGE->set_context($context);
+$PAGE->set_pagelayout('standard');
 $PAGE->set_url(new moodle_url('/admin/tool/policy/user.php', ['userid' => $userid]));
 
 $output = $PAGE->get_renderer('tool_policy');
 $PAGE->set_url(new moodle_url('/admin/tool/policy/user.php', ['userid' => $userid]));
 
 $output = $PAGE->get_renderer('tool_policy');