Index: trunk/extensions/ReaderFeedback/ReaderFeedback.class.php |
— | — | @@ -153,7 +153,9 @@ |
154 | 154 | * @param string $cache, optional param to not use cache |
155 | 155 | * @returns string HTML table |
156 | 156 | */ |
157 | | - public static function getVoteAggregates( $page, $period, $add = array(), $cache = 'useCache' ) { |
| 157 | + public static function getVoteAggregates( |
| 158 | + $page, $period, $add = array(), $cache = 'useCache' |
| 159 | + ) { |
158 | 160 | global $wgLang, $wgMemc; |
159 | 161 | if( $period > 93 ) { |
160 | 162 | return ''; // too big |
— | — | @@ -182,7 +184,7 @@ |
183 | 185 | $cutoff_unixtime = $now - ($period * 24 * 3600); |
184 | 186 | // Use integral number of days to be consistent with graphs |
185 | 187 | $cutoff_unixtime = $cutoff_unixtime - ($cutoff_unixtime % 86400); |
186 | | - $cutoff = $dbr->addQuotes( wfTimestamp( TS_MW, $cutoff_unixtime ) ); |
| 188 | + $cutoff = $dbr->addQuotes( $dbr->timestamp( $cutoff_unixtime ) ); |
187 | 189 | // Get the first revision possibly voted on in the range |
188 | 190 | $firstRevTS = $dbr->selectField( 'revision', |
189 | 191 | 'rev_timestamp', |