/** * Includes wiki match partial for non cross-wiki searches * @param Wikia\Search\Config $searchConfig */ protected function registerWikiMatch(Wikia\Search\Config $searchConfig) { $matchResult = $searchConfig->getWikiMatch()->getResult(); if ($matchResult !== null) { $matchResult['onWikiMatch'] = true; $this->setVal('wikiMatch', $this->getApp()->getView('WikiaSearch', 'exactResult', ['result' => $matchResult, 'pos' => 'wiki'])); $this->resultsFound++; } }