"MDL-14460, fix all the other get_context_instance,(use sed replace them), see tracker"

This commit is contained in:
dongsheng
2008-05-02 04:07:27 +00:00
parent 303e816601
commit 443a1fee8e
49 changed files with 57 additions and 57 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ if (has_capability('moodle/site:sendmessage', get_context_instance(CONTEXT_SYSTE
/// Check that the user is not blocking us!!
if ($contact = get_record('message_contacts', 'userid', $user->id, 'contactid', $USER->id)) {
if ($contact->blocked and !has_capability('moodle/site:readallmessages', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
if ($contact->blocked and !has_capability('moodle/site:readallmessages', get_context_instance(CONTEXT_SYSTEM))) {
print_heading(get_string('userisblockingyou', 'message'));
exit;
}