Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -3799,6 +3799,12 @@ |
3800 | 3800 | $wgPutIPinRC = true; |
3801 | 3801 | |
3802 | 3802 | /** |
| 3803 | + * Integer defining default number of entries to show on |
| 3804 | + * Special:Whatlinkshere |
| 3805 | + */ |
| 3806 | +$wgWhatlinkshereLimit = 50; |
| 3807 | + |
| 3808 | +/** |
3803 | 3809 | * Limit password attempts to X attempts per Y seconds per IP per account. |
3804 | 3810 | * Requires memcached. |
3805 | 3811 | */ |
Index: trunk/phase3/includes/specials/SpecialWhatlinkshere.php |
— | — | @@ -47,6 +47,7 @@ |
48 | 48 | } |
49 | 49 | |
50 | 50 | function execute( $par ) { |
| 51 | + global $wgWhatlinkshereLimit; |
51 | 52 | $out = $this->getOutput(); |
52 | 53 | |
53 | 54 | $this->setHeaders(); |
— | — | @@ -55,7 +56,7 @@ |
56 | 57 | |
57 | 58 | $opts->add( 'target', '' ); |
58 | 59 | $opts->add( 'namespace', '', FormOptions::INTNULL ); |
59 | | - $opts->add( 'limit', 50 ); |
| 60 | + $opts->add( 'limit', $wgWhatlinkshereLimit ); |
60 | 61 | $opts->add( 'from', 0 ); |
61 | 62 | $opts->add( 'back', 0 ); |
62 | 63 | $opts->add( 'hideredirs', false ); |