mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-15 03:35:39 +00:00
Define doesWrites() for SpecialPage classes
Bug: T123591 Change-Id: I26ea819730db7765877bc74a29a5ad0796462e40
This commit is contained in:
parent
0990d4c9ec
commit
0f0d676a66
|
@ -6,6 +6,10 @@ class SpecialNuke extends SpecialPage {
|
|||
parent::__construct( 'Nuke', 'nuke' );
|
||||
}
|
||||
|
||||
public function doesWrites() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function execute( $par ) {
|
||||
if ( !$this->userCanExecute( $this->getUser() ) ) {
|
||||
$this->displayRestrictionError();
|
||||
|
|
Loading…
Reference in a new issue