From 4322cedc02de5f4d590977be84deb2f12ada7fcb Mon Sep 17 00:00:00 2001 From: Sean Colombo Date: Tue, 25 Oct 2011 23:18:00 +0000 Subject: [PATCH] Followup to r97033 - removed wgWhatlinksherelimit and started the conversion to wgQueryPageDefaultLimit, but didn't see too many places using a default of 50. --- includes/DefaultSettings.php | 4 ++-- includes/specials/SpecialDeletedContributions.php | 3 ++- includes/specials/SpecialWhatlinkshere.php | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index ddc8ba2faf..7abf9f3829 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3813,9 +3813,9 @@ $wgPutIPinRC = true; /** * Integer defining default number of entries to show on - * Special:Whatlinkshere + * special pages which are query-pages such as Special:Whatlinkshere. */ -$wgWhatlinkshereLimit = 50; +$wgQueryPageDefaultLimit = 50; /** * Limit password attempts to X attempts per Y seconds per IP per account. diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index 752a84fcab..209622731a 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -257,6 +257,7 @@ class DeletedContributionsPage extends SpecialPage { * @param $par String: (optional) user name of the user for which to show the contributions */ function execute( $par ) { + global $wgQueryPageDefaultLimit; $this->setHeaders(); $user = $this->getUser(); @@ -283,7 +284,7 @@ class DeletedContributionsPage extends SpecialPage { return; } - $options['limit'] = $request->getInt( 'limit', 50 ); + $options['limit'] = $request->getInt( 'limit', $wgQueryPageDefaultLimit ); $options['target'] = $target; $nt = Title::makeTitleSafe( NS_USER, $target ); diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 1606bdfdcc..a6dc6f5d14 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -47,7 +47,7 @@ class SpecialWhatLinksHere extends SpecialPage { } function execute( $par ) { - global $wgWhatlinkshereLimit; + global $wgQueryPageDefaultLimit; $out = $this->getOutput(); $this->setHeaders(); @@ -56,7 +56,7 @@ class SpecialWhatLinksHere extends SpecialPage { $opts->add( 'target', '' ); $opts->add( 'namespace', '', FormOptions::INTNULL ); - $opts->add( 'limit', $wgWhatlinkshereLimit ); + $opts->add( 'limit', $wgQueryPageDefaultLimit ); $opts->add( 'from', 0 ); $opts->add( 'back', 0 ); $opts->add( 'hideredirs', false ); -- 2.20.1