From 7dd784cb8efbf7398535fcb0bc9e522bd5fe88b1 Mon Sep 17 00:00:00 2001 From: Sean Colombo Date: Wed, 14 Sep 2011 00:42:36 +0000 Subject: [PATCH] Merged wgWhatlinkshereLimit from Wikia. It defaults to the same value it was hardcoded to before. --- includes/DefaultSettings.php | 6 ++++++ includes/specials/SpecialWhatlinkshere.php | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 ); -- 2.20.1