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
Merge "REST: call MediaWiki::preOutputCommit and doPostOutputShutdown"
[lhc/web/wiklou.git]
/
maintenance
/
createAndPromote.php
diff --git
a/maintenance/createAndPromote.php
b/maintenance/createAndPromote.php
index
93614e0
..
505168e
100644
(file)
--- a/
maintenance/createAndPromote.php
+++ b/
maintenance/createAndPromote.php
@@
-103,17
+103,18
@@
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" );
}
}
if ( !$exists ) {
// Create the user via AuthManager as there may be various side
}
}
if ( !$exists ) {
// Create the user via AuthManager as there may be various side
- // effects that are perfomed by the configured AuthManager chain.
+ // effects that are perfo
r
med by the configured AuthManager chain.
$status = MediaWiki\Auth\AuthManager::singleton()->autoCreateUser(
$user,
MediaWiki\Auth\AuthManager::AUTOCREATE_SOURCE_MAINT,
$status = MediaWiki\Auth\AuthManager::singleton()->autoCreateUser(
$user,
MediaWiki\Auth\AuthManager::AUTOCREATE_SOURCE_MAINT,
@@
-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();
}