From: Rotem Liss Date: Tue, 21 Nov 2006 18:38:06 +0000 (+0000) Subject: Reverting the addition of class names near the parameters: it doesn't seem to have... X-Git-Tag: 1.31.0-rc.0~55132 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=165a70109f5e46d0a0940abe63e4a58a7012bd48;p=lhc%2Fweb%2Fwiklou.git 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). --- 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 {