From bc2d3e8bb9e3c5864d824ca21a5aa7912d0a8976 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Fri, 26 Jun 2020 17:31:37 +0100 Subject: [PATCH] MDL-69151 message_airnotifier: start output before accesskey request. This allows debugging generated by the request to be shown on the page. --- message/output/airnotifier/requestaccesskey.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/message/output/airnotifier/requestaccesskey.php b/message/output/airnotifier/requestaccesskey.php index 3d1991fc3e2..06648e53e18 100644 --- a/message/output/airnotifier/requestaccesskey.php +++ b/message/output/airnotifier/requestaccesskey.php @@ -61,6 +61,8 @@ if (strpos($CFG->airnotifierurl, AIRNOTIFIER_PUBLICURL) !== false ) { } } +echo $OUTPUT->header(); + $manager = new message_airnotifier_manager(); if ($key = $manager->request_accesskey()) { @@ -72,6 +74,5 @@ if ($key = $manager->request_accesskey()) { $msg .= $OUTPUT->continue_button($returl); -echo $OUTPUT->header(); echo $OUTPUT->box($msg, 'generalbox '); echo $OUTPUT->footer();