mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
Merge branch 'MDL-31316-master-4' of git://git.luns.net.uk/moodle
This commit is contained in:
commit
82b07ee7d3
@ -42,7 +42,11 @@
|
||||
|
||||
$hassiteconfig = has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
|
||||
|
||||
$PAGE->set_url('/');
|
||||
$urlparams = array();
|
||||
if ($CFG->defaulthomepage == HOMEPAGE_MY && optional_param('redirect', 1, PARAM_BOOL) === 0) {
|
||||
$urlparams['redirect'] = 0;
|
||||
}
|
||||
$PAGE->set_url('/', $urlparams);
|
||||
$PAGE->set_course($SITE);
|
||||
|
||||
/// If the site is currently under maintenance, then print a message
|
||||
|
Loading…
x
Reference in New Issue
Block a user