"MDL-19118 fixed a context id"

This commit is contained in:
Dongsheng Cai
2010-05-17 03:20:05 +00:00
parent 80db8e8dbb
commit 29323f27ed
+1 -1
View 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;