From: Sean Colombo Date: Tue, 25 Oct 2011 23:18:00 +0000 (+0000) Subject: Followup to r97033 - removed wgWhatlinksherelimit and started the conversion to wgQue... X-Git-Tag: 1.31.0-rc.0~26914 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=4322cedc02de5f4d590977be84deb2f12ada7fcb;p=lhc%2Fweb%2Fwiklou.git Followup to r97033 - removed wgWhatlinksherelimit and started the conversion to wgQueryPageDefaultLimit, but didn't see too many places using a default of 50. --- 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 );