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 "Fix CLI installer when --dbname is not specified on command line."
[lhc/web/wiklou.git]
/
maintenance
/
changePassword.php
diff --git
a/maintenance/changePassword.php
b/maintenance/changePassword.php
index
f276fc1
..
5d98e1f
100644
(file)
--- a/
maintenance/changePassword.php
+++ b/
maintenance/changePassword.php
@@
-24,7
+24,7
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
-require_once
( __DIR__ . '/Maintenance.php' )
;
+require_once
__DIR__ . '/Maintenance.php'
;
/**
* Maintenance script to change the password of a given user.
/**
* Maintenance script to change the password of a given user.
@@
-46,7
+46,7
@@
class ChangePassword extends Maintenance {
} elseif ( $this->hasOption( "userid" ) ) {
$user = User::newFromId( $this->getOption( 'userid' ) );
} else {
} elseif ( $this->hasOption( "userid" ) ) {
$user = User::newFromId( $this->getOption( 'userid' ) );
} else {
- $this->error( "A \"user\" or \"userid\" must be set to change the password for"
, true );
+ $this->error( "A \"user\" or \"userid\" must be set to change the password for", true );
}
if ( !$user || !$user->getId() ) {
$this->error( "No such user: " . $this->getOption( 'user' ), true );
}
if ( !$user || !$user->getId() ) {
$this->error( "No such user: " . $this->getOption( 'user' ), true );
@@
-62,4
+62,4
@@
class ChangePassword extends Maintenance {
}
$maintClass = "ChangePassword";
}
$maintClass = "ChangePassword";
-require_once
( RUN_MAINTENANCE_IF_MAIN )
;
+require_once
RUN_MAINTENANCE_IF_MAIN
;