Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
baa5cd8
)
MDL-31316 Fix block controls when default home is My Moodle
author
Ruslan Kabalin
<ruslan.kabalin@luns.net.uk>
Fri, 20 Jan 2012 16:01:03 +0000
(16:01 +0000)
committer
Ruslan Kabalin
<ruslan.kabalin@luns.net.uk>
Wed, 8 Feb 2012 09:46:36 +0000
(09:46 +0000)
index.php
patch
|
blob
|
blame
|
history
diff --git
a/index.php
b/index.php
index
232abdc
..
99bae5f
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-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