Index: trunk/phase3/includes/SpecialPreferences.php |
— | — | @@ -207,7 +207,7 @@ |
208 | 208 | function savePreferences() { |
209 | 209 | global $wgUser, $wgOut, $wgParser; |
210 | 210 | global $wgEnableUserEmail, $wgEnableEmail; |
211 | | - global $wgEmailAuthentication; |
| 211 | + global $wgEmailAuthentication, $wgRCMaxAge; |
212 | 212 | global $wgAuth, $wgEmailConfirmToEdit; |
213 | 213 | |
214 | 214 | |
— | — | @@ -275,7 +275,7 @@ |
276 | 276 | $wgUser->setOption( 'contextlines', $this->validateIntOrNull( $this->mSearchLines ) ); |
277 | 277 | $wgUser->setOption( 'contextchars', $this->validateIntOrNull( $this->mSearchChars ) ); |
278 | 278 | $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)))); |
280 | 280 | $wgUser->setOption( 'wllimit', $this->validateIntOrNull( $this->mWatchlistEdits, 0, 1000 ) ); |
281 | 281 | $wgUser->setOption( 'rows', $this->validateInt( $this->mRows, 4, 1000 ) ); |
282 | 282 | $wgUser->setOption( 'cols', $this->validateInt( $this->mCols, 4, 1000 ) ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -97,6 +97,7 @@ |
98 | 98 | * (bug 11620) Add call to User::isValidEmailAddr during accout creation. |
99 | 99 | * (bug 11629) If $wgEmailConfirmToEdit is true, require people to supply an |
100 | 100 | email address when registering. |
| 101 | +* (bug 11612) Days to show in recent changes cannot be larger than 7 |
101 | 102 | |
102 | 103 | |
103 | 104 | === API changes in 1.12 === |