Page MenuHomeWickedGov Phorge

UnprotectAction.php
No OneTemporary

Size
603 B
Referenced Files
None
Subscribers
None

UnprotectAction.php

<?php
/**
* @license GPL-2.0-or-later
* @file
* @ingroup Actions
*/
namespace MediaWiki\Actions;
/**
* Handle page unprotection (action=unprotect)
*
* This is a wrapper that will call Article::unprotect().
*
* @ingroup Actions
*/
class UnprotectAction extends ProtectAction {
/** @inheritDoc */
public function getName() {
return 'unprotect';
}
public function show() {
$this->getArticle()->unprotect();
}
/** @inheritDoc */
public function doesWrites() {
return true;
}
}
/** @deprecated class alias since 1.44 */
class_alias( UnprotectAction::class, 'UnprotectAction' );

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 08:50 (1 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
67/88/db172fc96a1d667b3c2d18a3ef17
Default Alt Text
UnprotectAction.php (603 B)

Event Timeline