From 446397b5ad19b46740b0833b3fc19360ff295828 Mon Sep 17 00:00:00 2001 From: JarJak Date: Sun, 20 Sep 2015 12:14:56 +0200 Subject: [PATCH] fix --- themes/danbooru/comment.theme.php | 2 +- themes/danbooru2/comment.theme.php | 2 +- themes/futaba/comment.theme.php | 2 +- themes/lite/comment.theme.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/danbooru/comment.theme.php b/themes/danbooru/comment.theme.php index 6ded3725..ca392da1 100644 --- a/themes/danbooru/comment.theme.php +++ b/themes/danbooru/comment.theme.php @@ -97,7 +97,7 @@ class CustomCommentListTheme extends CommentListTheme { * @param bool $trim * @return string */ - protected function comment_to_html($comment, $trim=false) { + protected function comment_to_html(Comment $comment, $trim=false) { global $user; $tfe = new TextFormattingEvent($comment->comment); diff --git a/themes/danbooru2/comment.theme.php b/themes/danbooru2/comment.theme.php index 826c87d4..224f4c77 100644 --- a/themes/danbooru2/comment.theme.php +++ b/themes/danbooru2/comment.theme.php @@ -87,7 +87,7 @@ class CustomCommentListTheme extends CommentListTheme { } - protected function comment_to_html($comment, $trim=false) { + protected function comment_to_html(Comment $comment, $trim=false) { global $user; $tfe = new TextFormattingEvent($comment->comment); diff --git a/themes/futaba/comment.theme.php b/themes/futaba/comment.theme.php index 3406a1d5..29e0b157 100644 --- a/themes/futaba/comment.theme.php +++ b/themes/futaba/comment.theme.php @@ -56,7 +56,7 @@ class CustomCommentListTheme extends CommentListTheme { } - protected function comment_to_html($comment, $trim=false) { + protected function comment_to_html(Comment $comment, $trim=false) { $inner_id = $this->inner_id; // because custom themes can't add params, because PHP global $user; diff --git a/themes/lite/comment.theme.php b/themes/lite/comment.theme.php index a30e086b..2cda33c3 100644 --- a/themes/lite/comment.theme.php +++ b/themes/lite/comment.theme.php @@ -6,7 +6,7 @@ class CustomCommentListTheme extends CommentListTheme { * @param bool $trim * @return string */ - protected function comment_to_html($comment, $trim=false) { + protected function comment_to_html(Comment $comment, $trim=false) { return $this->rr(parent::comment_to_html($comment, $trim)); }