Aude has uploaded a new change for review. https://gerrit.wikimedia.org/r/269446
Change subject: Use $this for private, non-static Searcher methods ...................................................................... Use $this for private, non-static Searcher methods instead of using self:: Change-Id: I50eaea87ca3579137dc44adac235eaf306b365a5 --- M includes/Searcher.php 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch refs/changes/46/269446/1 diff --git a/includes/Searcher.php b/includes/Searcher.php index 966d25d..c80d725 100644 --- a/includes/Searcher.php +++ b/includes/Searcher.php @@ -275,7 +275,7 @@ * @return Status status containing results defined by resultsType on success */ public function nearMatchTitleSearch( $search ) { - self::checkTitleSearchRequestLength( $search ); + $this->checkTitleSearchRequestLength( $search ); // Elasticsearch seems to have trouble extracting the proper terms to highlight // from the default query we make so we feed it exactly the right query to highlight. @@ -304,7 +304,7 @@ * @return Status status containing results defined by resultsType on success */ public function prefixSearch( $search ) { - self::checkTitleSearchRequestLength( $search ); + $this->checkTitleSearchRequestLength( $search ); if ( $search ) { if ( $this->config->get( 'CirrusSearchPrefixSearchStartsWithAnyWord' ) ) { @@ -351,7 +351,7 @@ * @return Status status containing results defined by resultsType on success */ public function searchText( $term, $showSuggestion ) { - $checkLengthStatus = self::checkTextSearchRequestLength( $term ); + $checkLengthStatus = $this->checkTextSearchRequestLength( $term ); if ( !$checkLengthStatus->isOk() ) { return $checkLengthStatus; } -- To view, visit https://gerrit.wikimedia.org/r/269446 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I50eaea87ca3579137dc44adac235eaf306b365a5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CirrusSearch Gerrit-Branch: master Gerrit-Owner: Aude <aude.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits