Permalink
Browse files

MDL-31316 Fix block controls when default home is My Moodle

  • Loading branch information...
1 parent 60811b8 commit 3512f3bff69998e39cc569ba4c34a2c865dbff82 Ruslan Kabalin committed with stronk7 Jan 20, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 index.php
View
@@ -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

0 comments on commit 3512f3b

Please sign in to comment.