Index: trunk/phase3/includes/api/ApiFeedWatchlist.php |
— | — | @@ -62,7 +62,6 @@ |
63 | 63 | // limit to the number of hours going from now back |
64 | 64 | $endTime = wfTimestamp( TS_MW, time() - intval( $params['hours'] * 60 * 60 ) ); |
65 | 65 | |
66 | | - $dbr = wfGetDB( DB_SLAVE ); |
67 | 66 | // Prepare parameters for nested request |
68 | 67 | $fauxReqArr = array( |
69 | 68 | 'action' => 'query', |
— | — | @@ -71,7 +70,7 @@ |
72 | 71 | 'list' => 'watchlist', |
73 | 72 | 'wlprop' => 'title|user|comment|timestamp', |
74 | 73 | 'wldir' => 'older', // reverse order - from newest to oldest |
75 | | - 'wlend' => $dbr->timestamp( $endTime ), // stop at this time |
| 74 | + 'wlend' => wfTimestamp( TS_MW, $endTime ), // stop at this time |
76 | 75 | 'wllimit' => ( 50 > $wgFeedLimit ) ? $wgFeedLimit : 50 |
77 | 76 | ); |
78 | 77 | |