Merged wgWhatlinkshereLimit from Wikia. It defaults to the same value it was hardcode...
authorSean Colombo <sean_colombo@users.mediawiki.org>
Wed, 14 Sep 2011 00:42:36 +0000 (00:42 +0000)
committerSean Colombo <sean_colombo@users.mediawiki.org>
Wed, 14 Sep 2011 00:42:36 +0000 (00:42 +0000)
includes/DefaultSettings.php
includes/specials/SpecialWhatlinkshere.php

index a6c1d03..a7a3a18 100644 (file)
@@ -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.
index 3740442..82000ff 100644 (file)
@@ -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 );