MDL-45789 mod_wiki: removed undefined "$this->other['itemid']" from the comments_view...
authorMark Nelson <markn@moodle.com>
Tue, 3 Jun 2014 22:16:52 +0000 (15:16 -0700)
committerMark Nelson <markn@moodle.com>
Fri, 6 Jun 2014 04:08:27 +0000 (21:08 -0700)
mod/wiki/classes/event/comments_viewed.php

index 28e6a8e..9526379 100644 (file)
@@ -51,8 +51,8 @@ class comments_viewed extends \core\event\comments_viewed {
      * @return string
      */
     public function get_description() {
-        return "The user with id '$this->userid' viewed a comment with id '$this->objectid' on the page with id " .
-            "'{$this->other['itemid']}' for the wiki with course module id '$this->contextinstanceid'.";
+        return "The user with id '$this->userid' viewed the comments for the page with id '$this->objectid' for the wiki " .
+            "with course module id '$this->contextinstanceid'.";
     }
 
     /**