Daniel Kinzler has uploaded a new change for review.

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


Change subject: Fix construction of TermSqlIndex in client.
......................................................................

Fix construction of TermSqlIndex in client.

BLOCKER! The client is unusable without this patch.

Change-Id: Ia5766c57d2cef98060ed36895bccfcf8de16a93f
---
M client/includes/store/sql/DirectSqlStore.php
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/35/72835/1

diff --git a/client/includes/store/sql/DirectSqlStore.php 
b/client/includes/store/sql/DirectSqlStore.php
index 2d0b281..722fb78 100644
--- a/client/includes/store/sql/DirectSqlStore.php
+++ b/client/includes/store/sql/DirectSqlStore.php
@@ -187,7 +187,10 @@
         * @return TermIndex
         */
        protected function newTermIndex() {
-               return new TermSqlIndex( 'wb_terms', $this->repoWiki );
+               //TODO: Get $stringNormalizer from WikibaseClient?
+               //      Can't really pass this via the constructor...
+               $stringNormalizer = new StringNormalizer();
+               return new TermSqlIndex( $stringNormalizer , $this->repoWiki );
        }
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia5766c57d2cef98060ed36895bccfcf8de16a93f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Daniel Kinzler <[email protected]>

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

Reply via email to