Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-20643 fixed login redirection from user profile

  • Loading branch information...
commit 5467d64c2a00b4e09642e4db9a0e91e5c9b19765 1 parent 6d81963
@skodak skodak authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 user/view.php
View
6 user/view.php
@@ -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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.