Index: trunk/extensions/FlaggedRevs/specialpages/ReaderFeedback_body.php |
— | — | @@ -254,7 +254,8 @@ |
255 | 255 | global $wgUser; |
256 | 256 | $dbw = wfGetDB( DB_MASTER ); |
257 | 257 | # Get date timestamp... |
258 | | - $date = str_pad( substr( wfTimestampNow(), 0, 8 ), 14, '0' ); |
| 258 | + $now = wfTimestampNow(); |
| 259 | + $date = str_pad( substr( $now, 0, 8 ), 14, '0' ); |
259 | 260 | if( count($this->dims) == 0 ) |
260 | 261 | return false; |
261 | 262 | $ratings = $this->flattenRatings( $this->dims ); |
— | — | @@ -277,7 +278,7 @@ |
278 | 279 | 'rfb_rev_id' => $this->oldid, |
279 | 280 | 'rfb_user' => $wgUser->getId(), |
280 | 281 | 'rfb_ip' => $ip, |
281 | | - 'rfb_timestamp' => $dbw->timestamp(), |
| 282 | + 'rfb_timestamp' => $dbw->timestamp( $now ), |
282 | 283 | 'rfb_ratings' => $ratings |
283 | 284 | ); |
284 | 285 | # Make sure initial page data is there to begin with... |
— | — | @@ -295,7 +296,7 @@ |
296 | 297 | $dbw->insert( 'reader_feedback', $insertRow, __METHOD__, 'IGNORE' ); |
297 | 298 | $dbw->insert( 'reader_feedback_history', $insertRows, __METHOD__, 'IGNORE' ); |
298 | 299 | # Update aggregate data for this page over time... |
299 | | - $touched = $dbw->timestamp( wfTimestampNow() ); |
| 300 | + $touched = $dbw->timestamp( $now ); |
300 | 301 | $overall = 0; |
301 | 302 | $insertRows = array(); |
302 | 303 | foreach( $this->dims as $tag => $val ) { |