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 "Bump qunit from 2.6.0 to 2.6.2"
[lhc/web/wiklou.git]
/
maintenance
/
makeTestEdits.php
diff --git
a/maintenance/makeTestEdits.php
b/maintenance/makeTestEdits.php
index
1effb61
..
d4ce931
100644
(file)
--- a/
maintenance/makeTestEdits.php
+++ b/
maintenance/makeTestEdits.php
@@
-40,7
+40,7
@@
class MakeTestEdits extends Maintenance {
public function execute() {
$user = User::newFromName( $this->getOption( 'user' ) );
if ( !$user->getId() ) {
public function execute() {
$user = User::newFromName( $this->getOption( 'user' ) );
if ( !$user->getId() ) {
- $this->
error( "No such user exists.", 1
);
+ $this->
fatalError( "No such user exists."
);
}
$count = $this->getOption( 'count' );
}
$count = $this->getOption( 'count' );
@@
-64,5
+64,5
@@
class MakeTestEdits extends Maintenance {
}
}
}
}
-$maintClass =
"MakeTestEdits"
;
+$maintClass =
MakeTestEdits::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;