Preserve 'srbackend' query parameter
authorRohan <rohan1395@yahoo.com>
Wed, 16 Jul 2014 08:01:31 +0000 (13:31 +0530)
committerRohan <rohan1395@yahoo.com>
Wed, 16 Jul 2014 08:05:36 +0000 (13:35 +0530)
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

index 15a7b59..7eb15b7 100644 (file)
@@ -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,