Merge pull request #512 from JarJak/develop

fixed declaration of CustomCommentListTheme::comment_to_html
This commit is contained in:
Shish 2015-09-20 12:32:34 +01:00
commit ca1782ff68
4 changed files with 4 additions and 4 deletions

View File

@ -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);

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;
$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
global $user;

View File

@ -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));
}