Physikerwelt has uploaded a new change for review. https://gerrit.wikimedia.org/r/110871
Change subject: Fix: Rename variables in TextSearch section ...................................................................... Fix: Rename variables in TextSearch section Change-Id: I0b1a81253f23a3bd9ed92e5669d351d416d795a6 --- M SpecialMathSearch.php 1 file changed, 4 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch refs/changes/71/110871/1 diff --git a/SpecialMathSearch.php b/SpecialMathSearch.php index 9151e23..77692d7 100644 --- a/SpecialMathSearch.php +++ b/SpecialMathSearch.php @@ -253,8 +253,8 @@ $out->addWikiText( "You searched for the text '$textpattern' and the TeX-Pattern '{$this->mathpattern}'." ); $out->addWikiText( "The text search results in [{{canonicalurl:search|search=$textpattern}} " . $sres->getTotalHits() - . "] hits and the math pattern matched $this->numMathResults times on [{{canonicalurl:{{FULLPAGENAMEE}}|pattern={$this->mathpattern}}} " . - sizeof( $this->relevantMathMap ) . + . "] hits and the math pattern matched {$this->mathBackend->getSize()} times on [{{canonicalurl:{{FULLPAGENAMEE}}|pattern={$this->mathpattern}}} " . + sizeof( $this->mathBackend->getRelevanceMap() ) . "] pages." ); //// var_dump($sres); wfDebugLog( 'mathsearch', 'BOF' ); @@ -263,7 +263,8 @@ while ( $tres = $sres->next() ) { $pageID = $tres->getTitle()->getArticleID(); // $out->addWikiText($pageID); - if ( isset( $this->relevantMathMap[$pageID] ) ) { + $rMap= $this->mathBackend->getRelevanceMap(); + if ( isset( $rMap ) ) { $out->addWikiText( "[[" . $tres->getTitle() . "]]" ); $out->addHtml( $tres->getTextSnippet( $textpattern ) ); $pageList .= "OR [[" . $pageID . "]]"; -- To view, visit https://gerrit.wikimedia.org/r/110871 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0b1a81253f23a3bd9ed92e5669d351d416d795a6 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MathSearch Gerrit-Branch: master Gerrit-Owner: Physikerwelt <w...@physikerwelt.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits