From 897df888c83b078be6eb4312966a4430d646763a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 27 Apr 2006 14:50:45 +0000 Subject: [PATCH] *histlegend is now wikitext *don't do double escaping --- includes/PageHistory.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 4ad2fe294d..4cfee47a89 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -174,7 +174,7 @@ class PageHistory { function beginHistoryList() { global $wgTitle; $this->lastdate = ''; - $s = wfMsgWikiHtml( 'histlegend' ); + $s = wfMsgExt( 'histlegend', array( 'parse') ); $s .= '
'; $prefixedkey = htmlspecialchars($wgTitle->getPrefixedDbKey()); @@ -198,8 +198,6 @@ class PageHistory { /** @todo document */ function endHistoryList() { - $last = wfMsg( 'last' ); - $s = ''; $s .= $this->submitButton( array( 'id' => 'historysubmit' ) ); $s .= '
'; @@ -213,9 +211,9 @@ class PageHistory { array( 'class' => 'historysubmit', 'type' => 'submit', - 'accesskey' => wfMsgHtml( 'accesskey-compareselectedversions' ), - 'title' => wfMsgHtml( 'tooltip-compareselectedversions' ), - 'value' => wfMsgHtml( 'compareselectedversions' ), + 'accesskey' => wfMsg( 'accesskey-compareselectedversions' ), + 'title' => wfMsg( 'tooltip-compareselectedversions' ), + 'value' => wfMsg( 'compareselectedversions' ), ) ) ) : ''; } @@ -251,7 +249,7 @@ class PageHistory { $s .= " $link $user"; if( $row->rev_minor_edit ) { - $s .= ' ' . wfElement( 'span', array( 'class' => 'minor' ), wfMsgHtml( 'minoreditletter') ); + $s .= ' ' . wfElement( 'span', array( 'class' => 'minor' ), wfMsg( 'minoreditletter') ); } $s .= $this->mSkin->revComment( $rev ); @@ -284,7 +282,7 @@ class PageHistory { /** @todo document */ function curLink( $rev, $latest ) { - $cur = wfMsgHtml( 'cur' ); + $cur = wfMsgExt( 'cur', array( 'escape') ); if( $latest || !$rev->userCan( MW_REV_DELETED_TEXT ) ) { return $cur; } else { @@ -297,7 +295,7 @@ class PageHistory { /** @todo document */ function lastLink( $rev, $next, $counter ) { - $last = htmlspecialchars( wfMsg( 'last' ) ); + $last = wfMsgExt( 'last', array( 'escape' ) ); if( is_null( $next ) ) { if( $rev->getTimestamp() == $this->getEarliestOffset() ) { return $last; -- 2.20.1