From: Siebrand Mazeland Date: Sun, 26 Feb 2012 11:49:01 +0000 (+0000) Subject: Follow-up r112410, r112412: Cheaper processing using plain(). X-Git-Tag: 1.31.0-rc.0~24507 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=fbe974a6f8e52fc73048c14e9d4436e371f0e956;p=lhc%2Fweb%2Fwiklou.git Follow-up r112410, r112412: Cheaper processing using plain(). --- diff --git a/includes/Linker.php b/includes/Linker.php index 9e4bfccdbc..03811580ae 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1399,7 +1399,7 @@ class Linker { return ''; } else { $formatted = self::formatComment( $comment, $title, $local ); - $formatted = wfMessage( 'parentheses' )->rawParams( $formatted ); + $formatted = wfMessage( 'parentheses' )->rawParams( $formatted )->plain(); return " $formatted"; } } @@ -1441,7 +1441,7 @@ class Linker { } else { global $wgLang; $stxt = wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $size ) ); - $stxt = wfMessage( 'parentheses' )->rawParams( $stxt ); + $stxt = wfMessage( 'parentheses' )->rawParams( $stxt )->plain(); } $stxt = htmlspecialchars( $stxt ); return "$stxt"; @@ -1870,7 +1870,7 @@ class Linker { $html = $delete ? wfMsgHtml( 'rev-delundel' ) : wfMsgHtml( 'rev-showdeleted' ); $tag = $restricted ? 'strong' : 'span'; $link = self::link( $sp, $html, array(), $query, array( 'known', 'noclasses' ) ); - return Xml::tags( $tag, array( 'class' => 'mw-revdelundel-link' ), wfMessage( 'parentheses' )->rawParams( $link ) ); + return Xml::tags( $tag, array( 'class' => 'mw-revdelundel-link' ), wfMessage( 'parentheses' )->rawParams( $link )->plain() ); } /** @@ -1883,7 +1883,7 @@ class Linker { */ public static function revDeleteLinkDisabled( $delete = true ) { $html = $delete ? wfMsgHtml( 'rev-delundel' ) : wfMsgHtml( 'rev-showdeleted' ); - return Xml::tags( 'span', array( 'class' => 'mw-revdelundel-link' ), wfMessage( 'parentheses' )->rawParams( $html ) ); + return Xml::tags( 'span', array( 'class' => 'mw-revdelundel-link' ), wfMessage( 'parentheses' )->rawParams( $html )->plain() ); } /* Deprecated methods */ diff --git a/includes/Pager.php b/includes/Pager.php index a9937e4967..db2978a7e0 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -771,7 +771,7 @@ abstract class ReverseChronologicalPager extends IndexPager { $limits = $this->getLanguage()->pipeList( $limitLinks ); $firstLastLinks = wfMessage( 'parentheses' )->rawParams( "{$pagingLinks['first']}" . wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . - "{$pagingLinks['last']}" ); + "{$pagingLinks['last']}" )->plain(); $this->mNavigationBar = $firstLastLinks . ' ' . wfMsgHTML( diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index ce67a6d198..6ea31396e9 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -254,7 +254,7 @@ class SpecialContributions extends SpecialPage { // @todo Should this be removed at some point? $oldMsg = $this->msg( 'contribsub' ); if ( $oldMsg->exists() ) { - $linksWithParentheses = $this->msg( 'parenteses' )->rawParams( $links ); + $linksWithParentheses = $this->msg( 'parenteses' )->rawParams( $links )->plain(); return $oldMsg->rawParams( "$user $linksWithParentheses" ); } else { return $this->msg( 'contribsub2' )->rawParams( $user, $links ); @@ -839,7 +839,7 @@ class ContribsPager extends ReverseChronologicalPager { $del .= ' '; } - $diffHistLinks = $this->msg( 'parentheses' )->rawParams( $difftext . $this->messages['pipe-separator'] . $histlink ); + $diffHistLinks = $this->msg( 'parentheses' )->rawParams( $difftext . $this->messages['pipe-separator'] . $histlink )->plain(); $ret = "{$del}{$d} {$diffHistLinks}{$chardiff}{$nflag}{$mflag} {$link}{$userlink} {$comment} {$topmarktext}"; # Denote if username is redacted for this edit