dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Localisation updates from https://translatewiki.net.
[lhc/web/wiklou.git]
/
maintenance
/
createAndPromote.php
diff --git
a/maintenance/createAndPromote.php
b/maintenance/createAndPromote.php
index
93614e0
..
da9b4d6
100644
(file)
--- a/
maintenance/createAndPromote.php
+++ b/
maintenance/createAndPromote.php
@@
-103,11
+103,12
@@
class CreateAndPromote extends Maintenance {
return;
} elseif ( count( $promotions ) !== 0 ) {
return;
} elseif ( count( $promotions ) !== 0 ) {
+ $dbDomain = WikiMap::getCurrentWikiDbDomain()->getId();
$promoText = "User:{$username} into " . implode( ', ', $promotions ) . "...\n";
if ( $exists ) {
$promoText = "User:{$username} into " . implode( ', ', $promotions ) . "...\n";
if ( $exists ) {
- $this->output(
wfWikiID() . "
: Promoting $promoText" );
+ $this->output(
"$dbDomain
: Promoting $promoText" );
} else {
} 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
if ( !$exists ) {
# Increment site_stats.ss_users
- $ssu =
new SiteStatsUpdate( 0, 0, 0, 0, 1
);
+ $ssu =
SiteStatsUpdate::factory( [ 'users' => 1 ]
);
$ssu->doUpdate();
}
$ssu->doUpdate();
}