From: Rohan Date: Wed, 16 Jul 2014 08:01:31 +0000 (+0530) Subject: Preserve 'srbackend' query parameter X-Git-Tag: 1.31.0-rc.0~14663^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=8c05d93e0b877188ca9103e97e20abef52e11583;p=lhc%2Fweb%2Fwiklou.git 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 --- 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,