MDL-62889 message_popup: redirect using moodle_url

Without this relative URLs passed (like /message/index.php)
were being redirected to HOST/message/index.php rather than
$CFG->wwwroot/message/index.php.
This commit is contained in:
Mark Nelson
2018-07-18 13:25:36 +08:00
parent b36383fb42
commit 23a04bf2cb
@@ -49,4 +49,4 @@ if ($notification) {
}
}
redirect($redirecturl);
redirect(new moodle_url($redirecturl));