Define doesWrites() for SpecialPage classes

Bug: T123591
Change-Id: I26ea819730db7765877bc74a29a5ad0796462e40
This commit is contained in:
Aaron Schulz 2016-01-19 12:06:35 -08:00
parent 0990d4c9ec
commit 0f0d676a66

View file

@ -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();