From: Niklas Laxström Date: Wed, 9 Jul 2008 09:17:20 +0000 (+0000) Subject: * More fixes to misuse of wfmsg functions X-Git-Tag: 1.31.0-rc.0~46613 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=24122b974ea21277460691b977c8018a945642cf;p=lhc%2Fweb%2Fwiklou.git * More fixes to misuse of wfmsg functions * Should fix bug 14767 --- diff --git a/includes/Pager.php b/includes/Pager.php index 23591b296c..62c4e551a2 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -486,10 +486,6 @@ abstract class IndexPager implements Pager { * @ingroup Pager */ abstract class AlphabeticPager extends IndexPager { - function __construct() { - parent::__construct(); - } - /** * Shamelessly stolen bits from ReverseChronologicalPager, * didn't want to do class magic as may be still revamped @@ -501,11 +497,12 @@ abstract class AlphabeticPager extends IndexPager { return $this->mNavigationBar; } + $opts = array( 'parsemag', 'escapenoentities' ); $linkTexts = array( - 'prev' => wfMsgHtml( 'prevn', $wgLang->formatNum( $this->mLimit ) ), - 'next' => wfMsgHtml( 'nextn', $wgLang->formatNum($this->mLimit ) ), - 'first' => wfMsgHtml( 'page_first' ), - 'last' => wfMsgHtml( 'page_last' ) + 'prev' => wfMsgExt( 'prevn', $opts, $wgLang->formatNum( $this->mLimit ) ), + 'next' => wfMsgExt( 'nextn', $opts, $wgLang->formatNum($this->mLimit ) ), + 'first' => wfMsgExt( 'page_first', $opts ), + 'last' => wfMsgExt( 'page_last', $opts ) ); $pagingLinks = $this->getPagingLinks( $linkTexts ); diff --git a/includes/specials/SpecialNewimages.php b/includes/specials/SpecialNewimages.php index 5fd37e8e0a..e57f6fc1eb 100644 --- a/includes/specials/SpecialNewimages.php +++ b/includes/specials/SpecialNewimages.php @@ -184,12 +184,14 @@ function wfSpecialNewimages( $par, $specialPage ) { $botLink = $sk->makeKnownLinkObj($titleObj, wfMsgHtml( 'showhidebots', ($hidebots ? wfMsgHtml('show') : wfMsgHtml('hide'))),'hidebots='.($hidebots ? '0' : '1').$searchpar); - $prevLink = wfMsgHtml( 'prevn', $wgLang->formatNum( $limit ) ); + + $opts = array( 'parsemag', 'escapenoentities' ); + $prevLink = wfMsgExt( 'prevn', $opts, $wgLang->formatNum( $limit ) ); if( $firstTimestamp && $firstTimestamp != $latestTimestamp ) { $prevLink = $sk->makeKnownLinkObj( $titleObj, $prevLink, 'from=' . $firstTimestamp . $botpar . $searchpar ); } - $nextLink = wfMsgHtml( 'nextn', $wgLang->formatNum( $limit ) ); + $nextLink = wfMsgExt( 'nextn', $opts, $wgLang->formatNum( $limit ) ); if( $shownImages > $limit && $lastTimestamp ) { $nextLink = $sk->makeKnownLinkObj( $titleObj, $nextLink, 'until=' . $lastTimestamp.$botpar.$searchpar ); }