MDL-20643 fixed login redirection from user profile
This commit is contained in:
+5
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user