Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -3813,9 +3813,9 @@ |
3814 | 3814 | |
3815 | 3815 | /** |
3816 | 3816 | * Integer defining default number of entries to show on |
3817 | | - * Special:Whatlinkshere |
| 3817 | + * special pages which are query-pages such as Special:Whatlinkshere. |
3818 | 3818 | */ |
3819 | | -$wgWhatlinkshereLimit = 50; |
| 3819 | +$wgQueryPageDefaultLimit = 50; |
3820 | 3820 | |
3821 | 3821 | /** |
3822 | 3822 | * Limit password attempts to X attempts per Y seconds per IP per account. |
Index: trunk/phase3/includes/specials/SpecialWhatlinkshere.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | } |
49 | 49 | |
50 | 50 | function execute( $par ) { |
51 | | - global $wgWhatlinkshereLimit; |
| 51 | + global $wgQueryPageDefaultLimit; |
52 | 52 | $out = $this->getOutput(); |
53 | 53 | |
54 | 54 | $this->setHeaders(); |
— | — | @@ -56,7 +56,7 @@ |
57 | 57 | |
58 | 58 | $opts->add( 'target', '' ); |
59 | 59 | $opts->add( 'namespace', '', FormOptions::INTNULL ); |
60 | | - $opts->add( 'limit', $wgWhatlinkshereLimit ); |
| 60 | + $opts->add( 'limit', $wgQueryPageDefaultLimit ); |
61 | 61 | $opts->add( 'from', 0 ); |
62 | 62 | $opts->add( 'back', 0 ); |
63 | 63 | $opts->add( 'hideredirs', false ); |
Index: trunk/phase3/includes/specials/SpecialDeletedContributions.php |
— | — | @@ -257,6 +257,7 @@ |
258 | 258 | * @param $par String: (optional) user name of the user for which to show the contributions |
259 | 259 | */ |
260 | 260 | function execute( $par ) { |
| 261 | + global $wgQueryPageDefaultLimit; |
261 | 262 | $this->setHeaders(); |
262 | 263 | |
263 | 264 | $user = $this->getUser(); |
— | — | @@ -283,7 +284,7 @@ |
284 | 285 | return; |
285 | 286 | } |
286 | 287 | |
287 | | - $options['limit'] = $request->getInt( 'limit', 50 ); |
| 288 | + $options['limit'] = $request->getInt( 'limit', $wgQueryPageDefaultLimit ); |
288 | 289 | $options['target'] = $target; |
289 | 290 | |
290 | 291 | $nt = Title::makeTitleSafe( NS_USER, $target ); |