dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Remove ParserTestParser hook from hooks.txt"
[lhc/web/wiklou.git]
/
includes
/
actions
/
RevisiondeleteAction.php
diff --git
a/includes/actions/RevisiondeleteAction.php
b/includes/actions/RevisiondeleteAction.php
index
b6eeb7b
..
7df42b3
100644
(file)
--- 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
* 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 {
*/
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';
public function getName() {
return 'revisiondelete';
@@
-52,4
+58,8
@@
class RevisiondeleteAction extends FormlessAction {
$special->getContext()->setTitle( $special->getPageTitle() );
$special->run( '' );
}
$special->getContext()->setTitle( $special->getPageTitle() );
$special->run( '' );
}
+
+ public function doesWrites() {
+ return true;
+ }
}
}