From: Chad Horohoe Date: Wed, 25 Jun 2014 18:31:41 +0000 (-0700) Subject: Don't use rclimit preference on Special:Search X-Git-Tag: 1.31.0-rc.0~15121^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=b5b27464dd64b536f8a62b8f0cb0b7f86c2c5212;p=lhc%2Fweb%2Fwiklou.git Don't use rclimit preference on Special:Search The 20 has no function otherwise since the default is 50. The preference description mentions many places it is used, but does not mention search results. Change-Id: I101a6d28391dbda68722e25a4da59bbbf91306d1 --- diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 4f8cabdbf0..530fbc8888 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -114,7 +114,7 @@ class SpecialSearch extends SpecialPage { */ public function load() { $request = $this->getRequest(); - list( $this->limit, $this->offset ) = $request->getLimitOffset( 20 ); + list( $this->limit, $this->offset ) = $request->getLimitOffset( 20, '' ); $this->mPrefix = $request->getVal( 'prefix', '' ); $user = $this->getUser();