Merged mymoodleredirect fix from stable, see MDL-7583
This commit is contained in:
@@ -53,6 +53,10 @@
|
||||
if (moodle_needs_upgrading()) {
|
||||
redirect($CFG->wwwroot .'/'. $CFG->admin .'/index.php');
|
||||
}
|
||||
} else if (!empty($CFG->mymoodleredirect)) { // Redirect logged-in users to My Moodle overview if required
|
||||
if (isloggedin()) {
|
||||
redirect($CFG->wwwroot .'/my/index.php');
|
||||
}
|
||||
}
|
||||
} else { // if upgrading from 1.6 or below
|
||||
if (isadmin() && moodle_needs_upgrading()) {
|
||||
@@ -60,6 +64,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (get_moodle_cookie() == '') {
|
||||
set_moodle_cookie('nobody'); // To help search for cookies on login page
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user