EBernhardson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/249046

Change subject: add missing ResultSet::hasInterwikiResults implementation
......................................................................

add missing ResultSet::hasInterwikiResults implementation

Change-Id: I7c1bd782063f82ec2980fb11f45f7e106d749416
---
M includes/Search/ResultSet.php
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/46/249046/1

diff --git a/includes/Search/ResultSet.php b/includes/Search/ResultSet.php
index de21989..0c0ab64 100644
--- a/includes/Search/ResultSet.php
+++ b/includes/Search/ResultSet.php
@@ -179,7 +179,11 @@
        }
 
        public function getInterwikiResults( $type = 
SearchResultSet::SECONDARY_RESULTS ) {
-               return isset($this->interwikiResults[$type])? 
$this->interwikiResults[$type] : array();
+               return isset($this->interwikiResults[$type]) ? 
$this->interwikiResults[$type] : array();
+       }
+
+       public function hasInterwikiResults( $type = 
SearchResultSet::SECONDARY_RESULTS ) {
+               return isset($this->interwikiResults[$type]);
        }
 
        public function searchContainedSyntax() {

-- 
To view, visit https://gerrit.wikimedia.org/r/249046
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7c1bd782063f82ec2980fb11f45f7e106d749416
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to