Merge "Preserve 'srbackend' query parameter"
authorChad <chadh@wikimedia.org>
Wed, 30 Jul 2014 18:03:58 +0000 (18:03 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 30 Jul 2014 18:03:58 +0000 (18:03 +0000)
includes/specials/SpecialSearch.php

index 423b875..1caed0b 100644 (file)
@@ -347,6 +347,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,