Index: trunk/phase3/includes/specials/SpecialRecentchanges.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | */ |
8 | 8 | class SpecialRecentChanges extends SpecialPage { |
9 | 9 | public function __construct() { |
10 | | - SpecialPage::SpecialPage( 'Recentchanges' ); |
| 10 | + parent::__construct( 'Recentchanges' ); |
11 | 11 | $this->includable( true ); |
12 | 12 | } |
13 | 13 | |
— | — | @@ -16,13 +16,14 @@ |
17 | 17 | * @return FormOptions |
18 | 18 | */ |
19 | 19 | public function getDefaultOptions() { |
| 20 | + global $wgUser; |
20 | 21 | $opts = new FormOptions(); |
21 | 22 | |
22 | | - $opts->add( 'days', (int)User::getDefaultOption( 'rcdays' ) ); |
23 | | - $opts->add( 'limit', (int)User::getDefaultOption( 'rclimit' ) ); |
| 23 | + $opts->add( 'days', (int)$wgUser->getOption( 'rcdays' ) ); |
| 24 | + $opts->add( 'limit', (int)$wgUser->getOption( 'rclimit' ) ); |
24 | 25 | $opts->add( 'from', '' ); |
25 | 26 | |
26 | | - $opts->add( 'hideminor', false ); |
| 27 | + $opts->add( 'hideminor', (bool)$wgUser->getOption( 'hideminor' ) ); |
27 | 28 | $opts->add( 'hidebots', true ); |
28 | 29 | $opts->add( 'hideanons', false ); |
29 | 30 | $opts->add( 'hideliu', false ); |
— | — | @@ -34,7 +35,6 @@ |
35 | 36 | |
36 | 37 | $opts->add( 'categories', '' ); |
37 | 38 | $opts->add( 'categories_any', false ); |
38 | | - |
39 | 39 | return $opts; |
40 | 40 | } |
41 | 41 | |
— | — | @@ -44,12 +44,9 @@ |
45 | 45 | * @return FormOptions |
46 | 46 | */ |
47 | 47 | public function setup( $parameters ) { |
48 | | - global $wgUser, $wgRequest; |
| 48 | + global $wgRequest; |
49 | 49 | |
50 | 50 | $opts = $this->getDefaultOptions(); |
51 | | - $opts['days'] = (int)$wgUser->getOption( 'rcdays', $opts['days'] ); |
52 | | - $opts['limit'] = (int)$wgUser->getOption( 'rclimit', $opts['limit'] ); |
53 | | - $opts['hideminor'] = $wgUser->getOption( 'hideminor', $opts['hideminor'] ); |
54 | 51 | $opts->fetchValuesFromRequest( $wgRequest ); |
55 | 52 | |
56 | 53 | // Give precedence to subpage syntax |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -23,8 +23,8 @@ |
24 | 24 | * $wgExemptFromUserRobotsControl is an array of namespaces to be exempt from |
25 | 25 | the effect of the new __INDEX__/__NOINDEX__ magic words. (Default: null, ex- |
26 | 26 | empt all content namespaces.) |
27 | | -* $wgTranslateNumerals is now set to false by default. Those who wants to use the |
28 | | - Eastern Arabic numerals should set it to true. |
| 27 | +* $wgTranslateNumerals is now set to false by default. Those who wants to use |
| 28 | + the Eastern Arabic numerals should set it to true. |
29 | 29 | |
30 | 30 | === New features in 1.14 === |
31 | 31 | |
— | — | @@ -34,6 +34,8 @@ |
35 | 35 | === Bug fixes in 1.14 === |
36 | 36 | |
37 | 37 | * (bug 14907) DatabasePostgres::fieldType now defined. |
| 38 | +* (bug 14659) Passing the default limit param to Special:Recentchanges no more |
| 39 | + falls back to the user option |
38 | 40 | |
39 | 41 | === API changes in 1.14 === |
40 | 42 | |