X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=maintenance%2FcreateAndPromote.php;h=da9b4d63a0b3f534f36483d16b1c71883583b972;hb=2a4e5dc9c7b240c261c7ef1b85ebd8837b3e526b;hp=93614e0a77b7cd1f4cee30907e9ae67f712682df;hpb=aac6b26c0bafc81287bb042304f1d346da94dc89;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/createAndPromote.php b/maintenance/createAndPromote.php index 93614e0a77..da9b4d63a0 100644 --- a/maintenance/createAndPromote.php +++ b/maintenance/createAndPromote.php @@ -103,11 +103,12 @@ class CreateAndPromote extends Maintenance { return; } elseif ( count( $promotions ) !== 0 ) { + $dbDomain = WikiMap::getCurrentWikiDbDomain()->getId(); $promoText = "User:{$username} into " . implode( ', ', $promotions ) . "...\n"; if ( $exists ) { - $this->output( wfWikiID() . ": Promoting $promoText" ); + $this->output( "$dbDomain: Promoting $promoText" ); } else { - $this->output( wfWikiID() . ": Creating and promoting $promoText" ); + $this->output( "$dbDomain: Creating and promoting $promoText" ); } } @@ -149,7 +150,7 @@ class CreateAndPromote extends Maintenance { if ( !$exists ) { # Increment site_stats.ss_users - $ssu = new SiteStatsUpdate( 0, 0, 0, 0, 1 ); + $ssu = SiteStatsUpdate::factory( [ 'users' => 1 ] ); $ssu->doUpdate(); }