Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dd6835
)
MDL-37983 - my home / navigation: $CFG->forcelogin is no longer affecting default...
author
Adrian Greeve
<adrian@moodle.com>
Fri, 15 Feb 2013 07:38:04 +0000
(15:38 +0800)
committer
Adrian Greeve
<adrian@moodle.com>
Fri, 15 Feb 2013 07:48:46 +0000
(15:48 +0800)
login/index.php
patch
|
blob
|
blame
|
history
diff --git
a/login/index.php
b/login/index.php
index
fde60a4
..
a98af01
100644
(file)
--- a/
login/index.php
+++ b/
login/index.php
@@
-202,7
+202,10
@@
if ($frm and isset($frm->username)) { // Login WITH
// 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()) {