Commit db0852c5 authored by moodler's avatar moodler
Browse files

Merged mymoodleredirect fix from stable, see MDL-7583

parent bdbe41d0
......@@ -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
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment