jenkins-bot has submitted this change and it was merged.

Change subject: Automatically populate sites table when creating a wiki
......................................................................


Automatically populate sites table when creating a wiki

Change-Id: Ib55bf710ede24cb94f649a131b83ca3a2a096cf3
---
M addWiki.php
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/addWiki.php b/addWiki.php
index 8c30e3e..7683d4a 100644
--- a/addWiki.php
+++ b/addWiki.php
@@ -191,6 +191,12 @@
                $searchIndex->mOptions[ 'baseName' ] = $dbName;
                $searchIndex->execute();
 
+               # Populate sites table
+               $sitesPopulation = $this->runChild( 'PopulateSitesTable' );
+               $sitesPopulation->mOptions[ 'site-group' ] = $site;
+               $sitesPopulation->mOptions[ 'force-protocol' ] = 'https';
+               $sitesPopulation->execute();
+
                # Clear MassMessage cache (bug 60075)
                global $wgMemc, $wgConf;
                // Even if the dblists have been updated, it's not in $wgConf 
yet

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib55bf710ede24cb94f649a131b83ca3a2a096cf3
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/WikimediaMaintenance
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: 20after4 <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to