Lokal Profil has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/351700 )

Change subject: Expose tabularDataStorageFrontendUrl through siteinfo
......................................................................

Expose tabularDataStorageFrontendUrl through siteinfo

Bug: T164413
Change-Id: I801625d3ac178b6c759c179c01ca58750d59ce56
---
M repo/Wikibase.hooks.php
M repo/tests/phpunit/includes/RepoHooksTest.php
2 files changed, 5 insertions(+), 0 deletions(-)


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

diff --git a/repo/Wikibase.hooks.php b/repo/Wikibase.hooks.php
index 4a5daa9..b08f2f8 100644
--- a/repo/Wikibase.hooks.php
+++ b/repo/Wikibase.hooks.php
@@ -838,6 +838,9 @@
                $geoShapeStorageBaseUrl = 
$wikibaseRepo->getSettings()->getSetting( 'geoShapeStorageFrontendUrl' );
                $data['wikibase-geoshapestoragebaseurl'] = 
$geoShapeStorageBaseUrl;
 
+               $tabularDataStorageBaseUrl = 
$wikibaseRepo->getSettings()->getSetting( 'tabularDataStorageFrontendUrl' );
+               $data['wikibase-tabulardatastoragebaseurl'] = 
$tabularDataStorageBaseUrl;
+
                $sparqlEndpoint = $wikibaseRepo->getSettings()->getSetting( 
'sparqlEndpoint' );
                if ( is_string( $sparqlEndpoint ) ) {
                        $data['wikibase-sparql'] = $sparqlEndpoint;
diff --git a/repo/tests/phpunit/includes/RepoHooksTest.php 
b/repo/tests/phpunit/includes/RepoHooksTest.php
index fd0cbd7..498c16a 100644
--- a/repo/tests/phpunit/includes/RepoHooksTest.php
+++ b/repo/tests/phpunit/includes/RepoHooksTest.php
@@ -69,6 +69,8 @@
 
                $this->assertInternalType( 'string', 
$actual['wikibase-geoshapestoragebaseurl'] );
 
+               $this->assertInternalType( 'string', 
$actual['wikibase-tabulardatastoragebaseurl'] );
+
                if ( array_key_exists( 'wikibase-sparql', $actual ) ) {
                        $this->assertInternalType( 'string', 
$actual['wikibase-sparql'] );
                }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I801625d3ac178b6c759c179c01ca58750d59ce56
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Lokal Profil <[email protected]>

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

Reply via email to