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 "Update OOUI to v0.30.4"
[lhc/web/wiklou.git]
/
maintenance
/
protect.php
diff --git
a/maintenance/protect.php
b/maintenance/protect.php
index
eae6154
..
e2c1a8b
100644
(file)
--- a/
maintenance/protect.php
+++ b/
maintenance/protect.php
@@
-62,9
+62,6
@@
class Protect extends Maintenance {
$this->fatalError( "Invalid username" );
}
$this->fatalError( "Invalid username" );
}
- // @todo FIXME: This is reset 7 lines down.
- $restrictions = [ 'edit' => $protection, 'move' => $protection ];
-
$t = Title::newFromText( $this->getArg() );
if ( !$t ) {
$this->fatalError( "Invalid title" );
$t = Title::newFromText( $this->getArg() );
if ( !$t ) {
$this->fatalError( "Invalid title" );
@@
-89,5
+86,5
@@
class Protect extends Maintenance {
}
}
}
}
-$maintClass =
"Protect"
;
+$maintClass =
Protect::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;