Followup to r97033 - removed wgWhatlinksherelimit and started the conversion to wgQue...
authorSean Colombo <sean_colombo@users.mediawiki.org>
Tue, 25 Oct 2011 23:18:00 +0000 (23:18 +0000)
committerSean Colombo <sean_colombo@users.mediawiki.org>
Tue, 25 Oct 2011 23:18:00 +0000 (23:18 +0000)
includes/DefaultSettings.php
includes/specials/SpecialDeletedContributions.php
includes/specials/SpecialWhatlinkshere.php

index ddc8ba2..7abf9f3 100644 (file)
@@ -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.
index 752a84f..2096227 100644 (file)
@@ -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 );
index 1606bdf..a6dc6f5 100644 (file)
@@ -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 );