This commit is contained in:
JarJak 2015-09-20 12:14:56 +02:00
parent 35a4f385b3
commit 446397b5ad
4 changed files with 4 additions and 4 deletions

View File

@ -97,7 +97,7 @@ class CustomCommentListTheme extends CommentListTheme {
* @param bool $trim * @param bool $trim
* @return string * @return string
*/ */
protected function comment_to_html($comment, $trim=false) { protected function comment_to_html(Comment $comment, $trim=false) {
global $user; global $user;
$tfe = new TextFormattingEvent($comment->comment); $tfe = new TextFormattingEvent($comment->comment);

View File

@ -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; global $user;
$tfe = new TextFormattingEvent($comment->comment); $tfe = new TextFormattingEvent($comment->comment);

View File

@ -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 $inner_id = $this->inner_id; // because custom themes can't add params, because PHP
global $user; global $user;

View File

@ -6,7 +6,7 @@ class CustomCommentListTheme extends CommentListTheme {
* @param bool $trim * @param bool $trim
* @return string * @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)); return $this->rr(parent::comment_to_html($comment, $trim));
} }