Browse files

Merge branch 'wip-MDL-37983-23' of git://github.com/abgreeve/moodle i…

…nto MOODLE_23_STABLE
  • Loading branch information...
2 parents c3dd188 + 156b8e3 commit 328b5eab5ceea9999c072caf00c3be4b760ffd62 @stronk7 stronk7 committed Mar 4, 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 328b5ea

Please sign in to comment.