mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-73233 shibboleth: Change urltogo only when dashboard is enabled
This commit is contained in:
parent
04d8b5999a
commit
599cb8bbb1
@ -73,7 +73,7 @@
|
||||
if (!has_capability('moodle/site:config',
|
||||
context_system::instance()) and !empty($CFG->defaulthomepage) and !isguestuser()) {
|
||||
if ($urltogo == $CFG->wwwroot or $urltogo == $CFG->wwwroot.'/' or $urltogo == $CFG->wwwroot.'/index.php') {
|
||||
if ($CFG->defaulthomepage == HOMEPAGE_MY) {
|
||||
if ($CFG->defaulthomepage == HOMEPAGE_MY && !empty($CFG->enabledashboard)) {
|
||||
$urltogo = $CFG->wwwroot.'/my/';
|
||||
} else if ($CFG->defaulthomepage == HOMEPAGE_MYCOURSES) {
|
||||
$urltogo = $CFG->wwwroot.'/my/courses.php';
|
||||
@ -99,5 +99,3 @@
|
||||
} else {
|
||||
print_error('shib_not_set_up_error', 'auth_shibboleth', '', $readmeurl);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user