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 "Misc fixes for file patrol"
[lhc/web/wiklou.git]
/
maintenance
/
createAndPromote.php
diff --git
a/maintenance/createAndPromote.php
b/maintenance/createAndPromote.php
index
861b364
..
c1a2022
100644
(file)
--- a/
maintenance/createAndPromote.php
+++ b/
maintenance/createAndPromote.php
@@
-106,6
+106,12
@@
class CreateAndPromote extends Maintenance {
}
}
}
}
+ if ( !$exists ) {
+ # Insert the account into the database
+ $user->addToDatabase();
+ $user->saveSettings();
+ }
+
if ( $password ) {
# Try to set the password
try {
if ( $password ) {
# Try to set the password
try {
@@
-119,12
+125,6
@@
class CreateAndPromote extends Maintenance {
}
}
}
}
- if ( !$exists ) {
- # Insert the account into the database
- $user->addToDatabase();
- $user->saveSettings();
- }
-
# Promote user
array_map( array( $user, 'addGroup' ), $promotions );
# Promote user
array_map( array( $user, 'addGroup' ), $promotions );