From: Erik Moeller Date: Tue, 24 Aug 2004 17:40:13 +0000 (+0000) Subject: use reference instead of value for title object parameter X-Git-Tag: 1.5.0alpha1~2239 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=c5e0ed45d680ef893626497558aa72bea8f74076;p=lhc%2Fweb%2Fwiklou.git use reference instead of value for title object parameter --- 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;