Aude has uploaded a new change for review.

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

Change subject: Add path argument to runChild for populateSitesTable
......................................................................

Add path argument to runChild for populateSitesTable

might not be super elegant but runChild supports this
and think it works.

tried it out with https://phabricator.wikimedia.org/P2571

Bug: T122513
Change-Id: I3affd6b0a8bc0820743de1d7537e9040fdf6fdca
---
M addWiki.php
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaMaintenance 
refs/changes/85/268585/1

diff --git a/addWiki.php b/addWiki.php
index a639bef..7dc3966 100644
--- a/addWiki.php
+++ b/addWiki.php
@@ -195,7 +195,11 @@
                $searchIndex->execute();
 
                # Populate sites table
-               $sitesPopulation = $this->runChild( 
'Wikibase\PopulateSitesTable' );
+               $sitesPopulation = $this->runChild(
+                       'Wikibase\PopulateSitesTable',
+                       __DIR__ . 
'/../Wikidata/extensions/Wikibase/lib/maintenance/populateSitesTable.php'
+               );
+
                $sitesPopulation->mOptions[ 'site-group' ] = $site;
                $sitesPopulation->mOptions[ 'force-protocol' ] = 'https';
                $sitesPopulation->execute();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3affd6b0a8bc0820743de1d7537e9040fdf6fdca
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaMaintenance
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>

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

Reply via email to