Skip to content

Commit

Permalink
"MDL-19118, fixed warning when comment blocks in course module context"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Apr 19, 2010
1 parent 7703888 commit cdbf0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comment/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private function setup_plugin() {
}
}

if ($this->context->contextlevel == CONTEXT_MODULE) {
if ($this->context->contextlevel == CONTEXT_MODULE && $this->env != 'block_comments') {
$this->plugintype = 'mod';
// to improve performance, pluginname should be assigned before initilise comment object
// if it is empty, we will try to guess, it will rarely be used.
Expand Down

0 comments on commit cdbf0f5

Please sign in to comment.