MDL-69151 message_airnotifier: start output before accesskey request.

This allows debugging generated by the request to be shown on the
page.
This commit is contained in:
Paul Holden
2020-07-01 08:30:10 +08:00
committed by Andrew Nicols
parent d6ce289176
commit bc2d3e8bb9
@@ -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();