Index: trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php |
— | — | @@ -24,10 +24,6 @@ |
25 | 25 | $mdt = $this->getMedianReviewWait(); |
26 | 26 | $pt = $this->getMeanPendingWait(); |
27 | 27 | $timestamp = $this->getLastUpdate(); |
28 | | - if ( $timestamp != '-' ) { |
29 | | - $date = $wgLang->date( $timestamp, true ); |
30 | | - $time = $wgLang->time( $timestamp, true ); |
31 | | - } |
32 | 28 | |
33 | 29 | $wgOut->addWikiMsg( 'validationstatistics-users', |
34 | 30 | $wgLang->formatnum( $ec ), $wgLang->formatnum( $rc ) |
— | — | @@ -56,8 +52,13 @@ |
57 | 53 | $reviewChart = ''; |
58 | 54 | } |
59 | 55 | |
60 | | - # Show "last updated"... |
61 | | - $wgOut->addWikiMsg( 'validationstatistics-lastupdate', $date, $time ); |
| 56 | + if ( $timestamp != '-' ) { |
| 57 | + # Show "last updated"... |
| 58 | + $wgOut->addWikiMsg( 'validationstatistics-lastupdate', |
| 59 | + $wgLang->date( $timestamp, true ), |
| 60 | + $wgLang->time( $timestamp, true ) |
| 61 | + ); |
| 62 | + } |
62 | 63 | $wgOut->addHtml( '<hr/>' ); |
63 | 64 | # Show pending time stats... |
64 | 65 | $wgOut->addWikiMsg( 'validationstatistics-pndtime', $wgLang->formatTimePeriod( $pt ) ); |