Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage.php |
— | — | @@ -1674,12 +1674,12 @@ |
1675 | 1675 | global $wgOut, $wgUser, $wgFlaggedRevsOversightAge; |
1676 | 1676 | $this->setHeaders(); |
1677 | 1677 | $wgOut->addHTML( wfMsgExt('qualityoversight-list', array('parse') ) ); |
1678 | | - # Create a LogPager item to get the results and a LogEventsList |
1679 | | - # item to format them... |
1680 | | - $cutoff = time() - $wgFlaggedRevsOversightAge; |
| 1678 | + # Create a LogPager item to get the results and a LogEventsList item to format them... |
| 1679 | + $dbr = wfGetDB( DB_SLAVE ); |
| 1680 | + $cutoff = $dbr->addQuotes( $dbr->timestamp(time() - $wgFlaggedRevsOversightAge) ); |
1681 | 1681 | $loglist = new LogEventsList( $wgUser->getSkin(), $wgOut, 0 ); |
1682 | 1682 | $pager = new LogPager( $loglist, 'review', '', '', '', |
1683 | | - array('log_action' => array('approve2','unapprove2'), "log_timestamp > '$cutoff'" ) ); |
| 1683 | + array('log_action' => array('approve2','unapprove2'), "log_timestamp > $cutoff" ) ); |
1684 | 1684 | # Insert list |
1685 | 1685 | $logBody = $pager->getBody(); |
1686 | 1686 | if( $logBody ) { |
— | — | @@ -1706,12 +1706,12 @@ |
1707 | 1707 | global $wgOut, $wgUser, $wgFlaggedRevsOversightAge; |
1708 | 1708 | $this->setHeaders(); |
1709 | 1709 | $wgOut->addHTML( wfMsgExt('depreciationoversight-list', array('parse') ) ); |
1710 | | - # Create a LogPager item to get the results and a LogEventsList |
1711 | | - # item to format them... |
1712 | | - $cutoff = time() - $wgFlaggedRevsOversightAge; |
| 1710 | + # Create a LogPager item to get the results and a LogEventsList item to format them... |
| 1711 | + $dbr = wfGetDB( DB_SLAVE ); |
| 1712 | + $cutoff = $dbr->addQuotes( $dbr->timestamp(time() - $wgFlaggedRevsOversightAge) ); |
1713 | 1713 | $loglist = new LogEventsList( $wgUser->getSkin(), $wgOut, 0 ); |
1714 | 1714 | $pager = new LogPager( $loglist, 'review', '', '', '', |
1715 | | - array('log_action' => array('unapprove','unapprove2'), "log_timestamp > '$cutoff'" ) ); |
| 1715 | + array('log_action' => array('unapprove','unapprove2'), "log_timestamp > $cutoff" ) ); |
1716 | 1716 | # Insert list |
1717 | 1717 | $logBody = $pager->getBody(); |
1718 | 1718 | if( $logBody ) { |