$query = $this->getFeedQuery();
$query['feedformat'] = $feedFormat === 'atom' ? 'atom' : 'rss';
$this->getOutput()->redirect( wfAppendQuery( wfScript( 'api' ), $query ) );
+
return;
}
if ( $query['limit'] > $wgFeedLimit ) {
$query['limit'] = $wgFeedLimit;
}
+
return $query;
}
$counter = 1;
$list = ChangesList::newFromContext( $this->getContext() );
- $rclistOutput = $list->beginRecentChangesList();
+ $rclistOutput = $list->beginRecentChangesList( $rows );
foreach ( $rows as $obj ) {
if ( $limit == 0 ) {
break;
public function checkLastModified() {
$dbr = $this->getDB();
$lastmod = $dbr->selectField( 'recentchanges', 'MAX(rc_timestamp)', false, __METHOD__ );
+
return $lastmod;
}