MDL-53901 login: Redirect to https if loginhttps is enabled

This just prevents a double redirect.
This commit is contained in:
Damyon Wiese
2016-05-02 10:53:07 +08:00
parent 3219a4535f
commit 9daa27426f
+1 -1
View File
@@ -353,7 +353,7 @@ if (!empty($SESSION->loginerrormsg)) {
if ($errormsg) {
$SESSION->loginerrormsg = $errormsg;
}
redirect(new moodle_url('/login/index.php'));
redirect(new moodle_url($CFG->httpswwwroot . '/login/index.php'));
}
$PAGE->set_title("$site->fullname: $loginsite");