Skip to content
Browse files

MDL-20643 fixed login redirection from user profile

  • Loading branch information...
1 parent 6d81963 commit 5467d64c2a00b4e09642e4db9a0e91e5c9b19765 @skodak skodak committed Oct 16, 2010
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);
}
}

0 comments on commit 5467d64

Please sign in to comment.
Something went wrong with that request. Please try again.