Last modified: 2011-11-09 15:15:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34315, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32315 - Hardcoded watchlist preferences limit of 7 days
Hardcoded watchlist preferences limit of 7 days
Status: RESOLVED DUPLICATE of bug 11612
Product: MediaWiki
Classification: Unclassified
Watchlist (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-09 15:10 UTC by Raymond Martineau
Modified: 2011-11-09 15:15 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Raymond Martineau 2011-11-09 15:10:20 UTC
In SpecialPreferences.php, line 850:

http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Preferences.php?revision=101358&view=markup

$defaultPreferences['watchlistdays'] = array(
                        'type' => 'float',
                        'min' => 0,
                        'max' => 7,
                        'section' => 'watchlist/displaywatchlist',
                        'help' => $context->msg( 'prefs-watchlist-days-max' )->escaped(),
                        'label-message' => 'prefs-watchlist-days',
                );

This is a hard coded limitation that doesn't properly reflect the possible range supported by Special:Watchlist (that is, all changes made that are still present in the recent changes table).  The best fix is to have the 'max' parameter calculated using '$wgRCMaxAge / 86400'.

If it still needs to be hard coded, set it to either 30 (Wikipeida) or 91 (default) instead.
Comment 1 Alexandre Emsenhuber [IAlex] 2011-11-09 15:15:08 UTC

*** This bug has been marked as a duplicate of bug 11612 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links