From: Sean Colombo Date: Wed, 14 Sep 2011 00:42:36 +0000 (+0000) Subject: Merged wgWhatlinkshereLimit from Wikia. It defaults to the same value it was hardcode... X-Git-Tag: 1.31.0-rc.0~27686 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=7dd784cb8efbf7398535fcb0bc9e522bd5fe88b1;p=lhc%2Fweb%2Fwiklou.git Merged wgWhatlinkshereLimit from Wikia. It defaults to the same value it was hardcoded to before. --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index a6c1d03ae6..a7a3a186cd 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3798,6 +3798,12 @@ $wgRateLimitsExcludedIPs = array(); */ $wgPutIPinRC = true; +/** + * Integer defining default number of entries to show on + * Special:Whatlinkshere + */ +$wgWhatlinkshereLimit = 50; + /** * Limit password attempts to X attempts per Y seconds per IP per account. * Requires memcached. diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 37404427f0..82000ff9df 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -47,6 +47,7 @@ class SpecialWhatLinksHere extends SpecialPage { } function execute( $par ) { + global $wgWhatlinkshereLimit; $out = $this->getOutput(); $this->setHeaders(); @@ -55,7 +56,7 @@ class SpecialWhatLinksHere extends SpecialPage { $opts->add( 'target', '' ); $opts->add( 'namespace', '', FormOptions::INTNULL ); - $opts->add( 'limit', 50 ); + $opts->add( 'limit', $wgWhatlinkshereLimit ); $opts->add( 'from', 0 ); $opts->add( 'back', 0 ); $opts->add( 'hideredirs', false );