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:
86b0f23
)
MDL-24383 adding missing context setup - credit goes to Paul Ortman
author
Petr Skoda
<skodak@moodle.org>
Mon, 27 Sep 2010 09:15:28 +0000
(09:15 +0000)
committer
Petr Skoda
<skodak@moodle.org>
Mon, 27 Sep 2010 09:15:28 +0000
(09:15 +0000)
user/messageselect.php
patch
|
blob
|
blame
|
history
diff --git
a/user/messageselect.php
b/user/messageselect.php
index
4c37e0b
..
73bc5ad
100644
(file)
--- a/
user/messageselect.php
+++ b/
user/messageselect.php
@@
-58,6
+58,7
@@
if ($deluser !== 0) {
$url->param('deluser', $deluser);
}
$PAGE->set_url($url);
+$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
if (!$course = $DB->get_record('course', array('id'=>$id))) {
print_error('invalidcourseid');