Skip to content

Commit

Permalink
MDL-52136 mod_forum: forum_post is templatable
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Mar 2, 2016
1 parent ca0227d commit e5a1f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/forum/classes/output/forum_post.php
Expand Up @@ -34,7 +34,7 @@
*
* @property boolean $viewfullnames Whether to override fullname()
*/
class forum_post implements \renderable {
class forum_post implements \renderable, \templatable {

/**
* The course that the forum post is in.
Expand Down Expand Up @@ -137,7 +137,7 @@ public function __construct($course, $cm, $forum, $discussion, $post, $author, $
* @param bool $plaintext Whethe the target is a plaintext target
* @return stdClass Data ready for use in a mustache template
*/
public function export_for_template(\mod_forum_renderer $renderer, $plaintext = false) {
public function export_for_template(\renderer_base $renderer, $plaintext = false) {
if ($plaintext) {
return $this->export_for_template_text($renderer);
} else {
Expand Down

0 comments on commit e5a1f7d

Please sign in to comment.