# As a feed, use limited settings only
if( $feedFormat ) {
global $wgFeedLimit;
- if( $limit > $wgFeedLimit ) {
- $limit = $wgFeedLimit;
- }
-
+ $limit = min( $wgFeedLimit, $limit );
} else {
$namespace = $wgRequest->getIntOrNull( 'namespace' );
if ($more != '') $more .= '&';
# Sort data for display and make sure it's unique after we've added user data.
+ # FIXME: why does this piss around with globals like this? Why is $limit added on globally?
$wgRCLinkLimits[] = $limit;
$wgRCLinkDays[] = $days;
sort($wgRCLinkLimits);