"MDL-19118 fixed a context id"
authorDongsheng Cai <unoter@gmail.com>
Mon, 17 May 2010 03:20:05 +0000 (03:20 +0000)
committerDongsheng Cai <unoter@gmail.com>
Mon, 17 May 2010 03:20:05 +0000 (03:20 +0000)
blocks/comments/block_comments.php

index 964ec88..7cf3c93 100644 (file)
@@ -39,7 +39,7 @@ class block_comments extends block_base {
         $this->content->footer = '';
         $this->content->text = '';
         if (isloggedin() && !isguestuser()) {
-            list($context, $course, $cm) = get_context_info_array($this->context->id);
+            list($context, $course, $cm) = get_context_info_array($PAGE->context->id);
             $args = new stdclass;
             $args->context   = $PAGE->context;
             $args->course    = $course;