X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FRevisiondeleteAction.php;h=7df42b3317fb4694cc7319400aa01f6955dd56fe;hb=96a9059eed908bd2b3e0ea9cc03712d293c9400f;hp=b6eeb7b4f64e07840c33eb0a5717435d702aff9d;hpb=5974804aee5bfc01ea6b49de8537df960035c0ce;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/RevisiondeleteAction.php b/includes/actions/RevisiondeleteAction.php index b6eeb7b4f6..7df42b3317 100644 --- a/includes/actions/RevisiondeleteAction.php +++ b/includes/actions/RevisiondeleteAction.php @@ -27,8 +27,14 @@ * An action that just pass the request to Special:RevisionDelete * * @ingroup Actions + * @deprecated since 1.25 This class has been replaced by SpecialPageAction, but + * you really shouldn't have been using it outside core in the first place */ class RevisiondeleteAction extends FormlessAction { + public function __construct( Page $page, IContextSource $context = null ) { + wfDeprecated( 'RevisiondeleteAction class', '1.25' ); + parent::__construct( $page, $context ); + } public function getName() { return 'revisiondelete'; @@ -52,4 +58,8 @@ class RevisiondeleteAction extends FormlessAction { $special->getContext()->setTitle( $special->getPageTitle() ); $special->run( '' ); } + + public function doesWrites() { + return true; + } }