From 8c05d93e0b877188ca9103e97e20abef52e11583 Mon Sep 17 00:00:00 2001 From: Rohan Date: Wed, 16 Jul 2014 13:31:31 +0530 Subject: [PATCH] Preserve 'srbackend' query parameter When navigating to a different result limit the srbackend parameter was lost. This patch fixes that by adding srbackend to SpecialSearch::extraParams. Bug: 61483 Change-Id: Ib510082ff058afbf033296e60a2ad67b4c9c9b24 --- includes/specials/SpecialSearch.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 15a7b59343..7eb15b7e78 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -346,6 +346,9 @@ class SpecialSearch extends SpecialPage { // Show the create link ahead $this->showCreateLink( $title, $num, $titleMatches, $textMatches ); if ( $totalRes > $this->limit || $this->offset ) { + if ( $this->searchEngineType !== null ) { + $this->setExtraParam( 'srbackend', $this->searchEngineType ); + } $prevnext = $this->getLanguage()->viewPrevNext( $this->getPageTitle(), $this->offset, -- 2.20.1