MDL-20643 fixed login redirection from user profile

This commit is contained in:
Petr Skoda
2010-10-16 17:59:35 +00:00
parent 6d819631e9
commit 5467d64c2a
+5 -1
View File
@@ -50,7 +50,11 @@
if (!empty($CFG->forceloginforprofiles)) {
require_login();
if (isguest()) {
redirect("$CFG->wwwroot/login/index.php");
$loginurl ="$CFG->wwwroot/login/index.php";
if (!empty($CFG->loginhttps)) {
$loginurl = str_replace("http://", "https://", $loginurl);
}
redirect($loginurl);
}
}