Smalyshev has uploaded a new change for review.

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

Change subject: Woops, another silly typo :(
......................................................................

Woops, another silly typo :(

Change-Id: Ic278cef5917116d424c6607cdd9e16493d10528d
---
M includes/LanguageDetector/TextCat.php
1 file changed, 1 insertion(+), 1 deletion(-)


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

diff --git a/includes/LanguageDetector/TextCat.php 
b/includes/LanguageDetector/TextCat.php
index 9933e85..ae84a8a 100644
--- a/includes/LanguageDetector/TextCat.php
+++ b/includes/LanguageDetector/TextCat.php
@@ -23,7 +23,7 @@
                        );
                }
                $textcat = new \TextCat( $wgCirrusSearchTextcatModel );
-               $languages = $textcat->classify();
+               $languages = $textcat->classify( $text );
                if( !empty( $languages ) ) {
                        // For now, just return the best option
                        // TODO: thing what else we could do

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic278cef5917116d424c6607cdd9e16493d10528d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Smalyshev <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to