From 165a70109f5e46d0a0940abe63e4a58a7012bd48 Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Tue, 21 Nov 2006 18:38:06 +0000 Subject: [PATCH] Reverting the addition of class names near the parameters: it doesn't seem to have a purpose, and breaks PHP 5.0.4 on my computer (PHP raises error when the parameters are set to null). --- includes/Linker.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Linker.php b/includes/Linker.php index f4e52ea509..65b5374e02 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -890,7 +890,7 @@ class Linker { * @param Title $title (to generate link to the section in autocomment) * @param bool $local Whether section links should refer to local page */ - function formatComment($comment, Title $title = NULL, $local = false) { + function formatComment($comment, $title = NULL, $local = false) { wfProfileIn( __METHOD__ ); global $wgContLang; @@ -975,7 +975,7 @@ class Linker { * * @return string */ - function commentBlock( $comment, Title $title = NULL, $local = false ) { + function commentBlock( $comment, $title = NULL, $local = false ) { // '*' used to be the comment inserted by the software way back // in antiquity in case none was provided, here for backwards // compatability, acc. to brion -ævar @@ -995,7 +995,7 @@ class Linker { * @param bool $local Whether section links should refer to local page * @return string HTML */ - function revComment( Revision $rev, $local = false ) { + function revComment( $rev, $local = false ) { if( $rev->userCan( Revision::DELETED_COMMENT ) ) { $block = $this->commentBlock( $rev->getRawComment(), $rev->getTitle(), $local ); } else { -- 2.20.1