Index: trunk/extensions/FlaggedRevs/presentation/specialpages/reports/UnreviewedPages_body.php |
— | — | @@ -16,6 +16,7 @@ |
17 | 17 | return; |
18 | 18 | } |
19 | 19 | $this->skin = $wgUser->getSkin(); |
| 20 | + $this->currentUnixTS = wfTimestamp( TS_UNIX ); // now |
20 | 21 | |
21 | 22 | # Get default namespace |
22 | 23 | $namespaces = FlaggedRevs::getReviewNamespaces(); |
— | — | @@ -118,10 +119,8 @@ |
119 | 120 | $stxt = " <small>$stxt</small>"; |
120 | 121 | } |
121 | 122 | # Get how long the first unreviewed edit has been waiting... |
122 | | - static $currentTime; |
123 | | - $currentTime = wfTimestamp( TS_UNIX ); // now |
124 | 123 | $firstPendingTime = wfTimestamp( TS_UNIX, $row->creation ); |
125 | | - $hours = ( $currentTime - $firstPendingTime ) / 3600; |
| 124 | + $hours = ( $this->currentUnixTS - $firstPendingTime ) / 3600; |
126 | 125 | // After three days, just use days |
127 | 126 | if ( $hours > ( 3 * 24 ) ) { |
128 | 127 | $days = round( $hours / 24, 0 ); |