25 parent::__construct(
'Unlockdb',
'siteadmin' );
39 parent::checkExecutePermissions( $user );
40 # If the lock file isn't writable, we can do sweet bugger all
51 'label-message' =>
'unlockconfirm',
58 ->setHeaderHtml( $this->
msg(
'unlockdbtext' )->parseAsBlock() )
59 ->setSubmitTextMsg(
'unlockbtn' );
64 if ( !$data[
'Confirm'] ) {
65 return Status::newFatal(
'locknoconfirm' );
70 $res = @unlink( $readOnlyFile );
73 return Status::newGood();
75 return Status::newFatal(
'filedeleteerror', $readOnlyFile );
81 $out->addSubtitle( $this->
msg(
'unlockdbsuccesssub' ) );
82 $out->addWikiMsg(
'unlockdbsuccesstext' );
100class_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.