From b5b27464dd64b536f8a62b8f0cb0b7f86c2c5212 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 25 Jun 2014 11:31:41 -0700 Subject: [PATCH] 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 --- includes/specials/SpecialSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1