# Toggle watchlist content (all recent edits or just the latest)
if ( $opts['extended'] ) {
- $limitWatchlist = $user->getIntOption( 'wllimit' );
$usePage = false;
} else {
# Top log Ids for a page are not stored
LIST_OR
);
}
- $limitWatchlist = 0;
$usePage = true;
}
$tables = array_merge( [ 'recentchanges', 'watchlist' ], $tables );
$fields = array_merge( RecentChange::selectFields(), $fields );
- $query_options = array_merge( [ 'ORDER BY' => 'rc_timestamp DESC' ], $query_options );
+ $query_options = array_merge( [
+ 'ORDER BY' => 'rc_timestamp DESC',
+ 'LIMIT' => $user->getIntOption( 'wllimit' )
+ ], $query_options );
$join_conds = array_merge(
[
'watchlist' => [
if ( $this->getConfig()->get( 'ShowUpdatedMarker' ) ) {
$fields[] = 'wl_notificationtimestamp';
}
- if ( $limitWatchlist ) {
- $query_options['LIMIT'] = $limitWatchlist;
- }
$rollbacker = $user->isAllowed( 'rollback' );
if ( $usePage || $rollbacker ) {
"prefs-editwatchlist-clear": "Clear your watchlist",
"prefs-watchlist-days": "Days to show in watchlist:",
"prefs-watchlist-days-max": "Maximum $1 {{PLURAL:$1|day|days}}",
- "prefs-watchlist-edits": "Maximum number of changes to show in expanded watchlist:",
+ "prefs-watchlist-edits": "Maximum number of changes to show in watchlist:",
"prefs-watchlist-edits-max": "Maximum number: 1000",
"prefs-watchlist-token": "Watchlist token:",
"prefs-misc": "Misc",