http://www.mediawiki.org/wiki/Special:Code/MediaWiki/66285
Revision: 66285 Author: aaron Date: 2010-05-12 19:37:43 +0000 (Wed, 12 May 2010) Log Message: ----------- Timestamp query fix Modified Paths: -------------- trunk/extensions/ReaderFeedback/ReaderFeedback.class.php Modified: trunk/extensions/ReaderFeedback/ReaderFeedback.class.php =================================================================== --- trunk/extensions/ReaderFeedback/ReaderFeedback.class.php 2010-05-12 19:33:53 UTC (rev 66284) +++ trunk/extensions/ReaderFeedback/ReaderFeedback.class.php 2010-05-12 19:37:43 UTC (rev 66285) @@ -153,7 +153,9 @@ * @param string $cache, optional param to not use cache * @returns string HTML table */ - public static function getVoteAggregates( $page, $period, $add = array(), $cache = 'useCache' ) { + public static function getVoteAggregates( + $page, $period, $add = array(), $cache = 'useCache' + ) { global $wgLang, $wgMemc; if( $period > 93 ) { return ''; // too big @@ -182,7 +184,7 @@ $cutoff_unixtime = $now - ($period * 24 * 3600); // Use integral number of days to be consistent with graphs $cutoff_unixtime = $cutoff_unixtime - ($cutoff_unixtime % 86400); - $cutoff = $dbr->addQuotes( wfTimestamp( TS_MW, $cutoff_unixtime ) ); + $cutoff = $dbr->addQuotes( $dbr->timestamp( $cutoff_unixtime ) ); // Get the first revision possibly voted on in the range $firstRevTS = $dbr->selectField( 'revision', 'rev_timestamp', _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs