r26591 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26590‎ | r26591 | r26592 >
Date:12:31, 11 October 2007
Author:catrope
Status:old
Tags:
Comment:
(bug 11612) Days to show in recent changes cannot be larger than 7
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialPreferences.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialPreferences.php
@@ -207,7 +207,7 @@
208208 function savePreferences() {
209209 global $wgUser, $wgOut, $wgParser;
210210 global $wgEnableUserEmail, $wgEnableEmail;
211 - global $wgEmailAuthentication;
 211+ global $wgEmailAuthentication, $wgRCMaxAge;
212212 global $wgAuth, $wgEmailConfirmToEdit;
213213
214214
@@ -275,7 +275,7 @@
276276 $wgUser->setOption( 'contextlines', $this->validateIntOrNull( $this->mSearchLines ) );
277277 $wgUser->setOption( 'contextchars', $this->validateIntOrNull( $this->mSearchChars ) );
278278 $wgUser->setOption( 'rclimit', $this->validateIntOrNull( $this->mRecent ) );
279 - $wgUser->setOption( 'rcdays', $this->validateInt( $this->mRecentDays, 1, 7 ) );
 279+ $wgUser->setOption( 'rcdays', $this->validateInt($this->mRecentDays, 1, ceil($wgRCMaxAge / (3600*24))));
280280 $wgUser->setOption( 'wllimit', $this->validateIntOrNull( $this->mWatchlistEdits, 0, 1000 ) );
281281 $wgUser->setOption( 'rows', $this->validateInt( $this->mRows, 4, 1000 ) );
282282 $wgUser->setOption( 'cols', $this->validateInt( $this->mCols, 4, 1000 ) );
Index: trunk/phase3/RELEASE-NOTES
@@ -97,6 +97,7 @@
9898 * (bug 11620) Add call to User::isValidEmailAddr during accout creation.
9999 * (bug 11629) If $wgEmailConfirmToEdit is true, require people to supply an
100100 email address when registering.
 101+* (bug 11612) Days to show in recent changes cannot be larger than 7
101102
102103
103104 === API changes in 1.12 ===

Follow-up revisions

RevisionCommit summaryAuthorDate
r107169Bugzilla bug11612 - Make watchlist max days preference setting reflect the ma...bsitu18:55, 23 December 2011

Status & tagging log