29use Wikimedia\AtEase\AtEase;
40 parent::__construct(
'Unlockdb',
'siteadmin' );
52 parent::checkExecutePermissions( $user );
53 # If the lock file isn't writable, we can do sweet bugger all
63 'label-message' =>
'unlockconfirm',
70 ->setHeaderHtml( $this->
msg(
'unlockdbtext' )->parseAsBlock() )
71 ->setSubmitTextMsg(
'unlockbtn' );
75 if ( !$data[
'Confirm'] ) {
76 return Status::newFatal(
'locknoconfirm' );
80 AtEase::suppressWarnings();
81 $res = unlink( $readOnlyFile );
82 AtEase::restoreWarnings();
85 return Status::newGood();
87 return Status::newFatal(
'filedeleteerror', $readOnlyFile );
93 $out->addSubtitle( $this->
msg(
'unlockdbsuccesssub' ) );
94 $out->addWikiMsg(
'unlockdbsuccesstext' );
110class_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.