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 "Add @coversNothing in places where @covers does not apply"
[lhc/web/wiklou.git]
/
maintenance
/
protect.php
diff --git
a/maintenance/protect.php
b/maintenance/protect.php
index
31b2101
..
eae6154
100644
(file)
--- a/
maintenance/protect.php
+++ b/
maintenance/protect.php
@@
-41,8
+41,8
@@
class Protect extends Maintenance {
}
public function execute() {
}
public function execute() {
- $userName = $this->getOption( 'u', false );
- $reason = $this->getOption( 'r', '' );
+ $userName = $this->getOption( 'u
ser
', false );
+ $reason = $this->getOption( 'r
eason
', '' );
$cascade = $this->hasOption( 'cascade' );
$cascade = $this->hasOption( 'cascade' );
@@
-59,7
+59,7
@@
class Protect extends Maintenance {
$user = User::newFromName( $userName );
}
if ( !$user ) {
$user = User::newFromName( $userName );
}
if ( !$user ) {
- $this->
error( "Invalid username", true
);
+ $this->
fatalError( "Invalid username"
);
}
// @todo FIXME: This is reset 7 lines down.
}
// @todo FIXME: This is reset 7 lines down.
@@
-67,7
+67,7
@@
class Protect extends Maintenance {
$t = Title::newFromText( $this->getArg() );
if ( !$t ) {
$t = Title::newFromText( $this->getArg() );
if ( !$t ) {
- $this->
error( "Invalid title", true
);
+ $this->
fatalError( "Invalid title"
);
}
$restrictions = [];
}
$restrictions = [];