From c5e0ed45d680ef893626497558aa72bea8f74076 Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Tue, 24 Aug 2004 17:40:13 +0000 Subject: [PATCH] use reference instead of value for title object parameter --- includes/Skin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 9fa3806b64..79355cbd37 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2533,11 +2533,11 @@ class Skin { comments. It escapes any HTML in the comment, but adds some CSS to format auto-generated comments (from section editing) and formats [[wikilinks]]. - The $title parameter, which is optional, must be a title OBJECT. It is - used to generate a direct link to the section in the autocomment. + The &$title parameter must be a title OBJECT. It is used to generate a + direct link to the section in the autocomment. Main author: Erik Moeller (moeller@scireview.de) */ - function formatComment($comment, $title='') + function formatComment($comment, &$title) { global $wgLang; $comment = htmlspecialchars( $comment ); @@ -2650,7 +2650,7 @@ class Skin { if ( '' != $description && '*' != $description ) { $sk=$wgUser->getSkin(); - $s .= $wgLang->emphasize(' (' . $sk->formatComment($description) . ')'); + $s .= $wgLang->emphasize(' (' . $sk->formatComment($description,$wgTitle) . ')'); } $s .= "\n"; return $s; -- 2.20.1