From 9d438653a56eca80a086f6710cd55c5a2090b532 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 29 Oct 2008 15:47:58 +0000 Subject: [PATCH] Redo r41723: still show rcnotefrom as needed, but not rcnote. Add rclegend message if it is not empty. --- includes/specials/SpecialRecentchanges.php | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 105a6eca1d..11f98641e3 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -595,17 +595,15 @@ class SpecialRecentChanges extends SpecialPage { $options = $nondefaults + $defaults; - if( $options['from'] ) - $note = wfMsgExt( 'rcnotefrom', array( 'parseinline' ), + $note = ''; + if( $options['from'] ) { + $note .= wfMsgExt( 'rcnotefrom', array( 'parseinline' ), $wgLang->formatNum( $options['limit'] ), - $wgLang->timeanddate( $options['from'], true ) ); - else - $note = wfMsgExt( 'rcnote', array( 'parseinline' ), - $wgLang->formatNum( $options['limit'] ), - $wgLang->formatNum( $options['days'] ), - $wgLang->timeAndDate( wfTimestampNow(), true ), - $wgLang->date( wfTimestampNow(), true ), - $wgLang->time( wfTimestampNow(), true ) ); + $wgLang->timeanddate( $options['from'], true ) ) . '
'; + } + if( !wfEmptyMsg( 'rclegend', wfMsg('rclegend') ) ) { + $note .= wfMsgExt( 'rclegend', array('parseinline') ) . '
'; + } # Sort data for display and make sure it's unique after we've added user data. $wgRCLinkLimits[] = $options['limit']; @@ -661,6 +659,6 @@ class SpecialRecentChanges extends SpecialPage { $rclinks = wfMsgExt( 'rclinks', array( 'parseinline', 'replaceafter' ), $cl, $dl, $hl ); $rclistfrom = wfMsgExt( 'rclistfrom', array( 'parseinline', 'replaceafter' ), $tl ); - return "$note
$rclinks
$rclistfrom"; + return "{$note}$rclinks
$rclistfrom"; } } -- 2.20.1