From 2d94fbe5b9273a8153a38a902ea8b253230111b1 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 26 Aug 2008 14:21:10 +0000 Subject: [PATCH] Make the elements of the watchlist fieldset identical to the elements of the recent changes fieldset. --- includes/specials/SpecialWatchlist.php | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index a500ab0aed..5a0404239c 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -220,25 +220,21 @@ function wfSpecialWatchlist( $par ) { $numRows = $dbr->numRows( $res ); /* Start bottom header */ - $wgOut->addHTML( "
\n" ); - if($days >= 1) { - $wgOut->addHTML( - wfMsgExt( 'rcnote', 'parseinline', + $wlInfo = ''; + if( $days >= 1 ) { + $wlInfo = wfMsgExt( 'rcnote', 'parseinline', $wgLang->formatNum( $numRows ), $wgLang->formatNum( $days ), $wgLang->timeAndDate( wfTimestampNow(), true ), $wgLang->date( wfTimestampNow(), true ), $wgLang->time( wfTimestampNow(), true ) - ) . '
' - ); - } elseif($days > 0) { - $wgOut->addHtml( - wfMsgExt( 'wlnote', 'parseinline', + ) . '
'; + } elseif( $days > 0 ) { + $wlInfo = wfMsgExt( 'wlnote', 'parseinline', $wgLang->formatNum( $numRows ), $wgLang->formatNum( round($days*24) ) - ) . '
' - ); + ) . '
'; } $cutofflinks = "\n" . wlCutoffLinks( $days, 'Watchlist', $nondefaults ) . "
\n"; @@ -277,6 +273,7 @@ function wfSpecialWatchlist( $par ) { $form .= Xml::openElement( 'legend', array( 'id' => 'mw-watchlist-legend' ) ); $form .= wfMsgExt( 'watchlist-options', array('escape') ); $form .= Xml::closeElement( 'legend' ); + $form .= $wlInfo; $form .= $cutofflinks; $form .= implode( ' | ', $links ); $form .= Xml::openElement( 'form', array( 'method' => 'post', 'action' => $thisTitle->getLocalUrl() ) ); -- 2.20.1