32use Wikimedia\AtEase\AtEase;
42 parent::__construct(
'Unlockdb',
'siteadmin' );
54 parent::checkExecutePermissions( $user );
55 # If the lock file isn't writable, we can do sweet bugger all
65 'label-message' =>
'unlockconfirm',
72 ->setHeaderHtml( $this->
msg(
'unlockdbtext' )->parseAsBlock() )
73 ->setSubmitTextMsg(
'unlockbtn' );
77 if ( !$data[
'Confirm'] ) {
78 return Status::newFatal(
'locknoconfirm' );
82 AtEase::suppressWarnings();
83 $res = unlink( $readOnlyFile );
84 AtEase::restoreWarnings();
87 return Status::newGood();
89 return Status::newFatal(
'filedeleteerror', $readOnlyFile );
95 $out->addSubtitle( $this->
msg(
'unlockdbsuccesssub' ) );
96 $out->addWikiMsg(
'unlockdbsuccesstext' );
112class_alias( SpecialUnlockdb::class,
'SpecialUnlockdb' );
An error page which can definitely be safely rendered using the OutputPage.
A class containing constants representing the names of configuration variables.
const ReadOnlyFile
Name constant for the ReadOnlyFile setting, for use with Config::get()
Special page which uses an HTMLForm to handle processing.
getConfig()
Shortcut to get main config object.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getOutput()
Get the OutputPage being used for this instance.