Skip to content
Browse files

MDL-37983 - my home / navigation: $CFG->forcelogin is no longer affec…

…ting default home page redirects.
  • Loading branch information...
1 parent bbcf8da commit 156b8e3c9dc4eacf0b3e243c98de6a8690f8ee24 @abgreeve abgreeve committed Feb 15, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 login/index.php
View
3 login/index.php
@@ -204,7 +204,10 @@
// no wantsurl stored or external - go to homepage
$urltogo = $CFG->wwwroot.'/';
unset($SESSION->wantsurl);
+ }
+ // If the url to go to is the same as the site page, check for default homepage.
+ if ($urltogo == ($CFG->wwwroot . '/')) {
$home_page = get_home_page();
// Go to my-moodle page instead of site homepage if defaulthomepage set to homepage_my
if ($home_page == HOMEPAGE_MY && !is_siteadmin() && !isguestuser()) {

0 comments on commit 156b8e3

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