Skip to content

Commit

Permalink
Merge branch 'wip-MDL-37983-24' of git://github.com/abgreeve/moodle i…
Browse files Browse the repository at this point in the history
…nto MOODLE_24_STABLE
  • Loading branch information
stronk7 committed Mar 4, 2013
2 parents 26431c6 + 3884b06 commit bbdbe0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions login/index.php
Expand Up @@ -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()) {
Expand Down

0 comments on commit bbdbe0a

Please sign in to comment.