From 0db6b729866268101b517fe799513a8eee2b4628 Mon Sep 17 00:00:00 2001 From: withoutaname Date: Sat, 21 Jun 2014 17:57:41 -0700 Subject: [PATCH] Remove info(), purge(), revert() and rollback() from Article.php Deprecated since 1.19 and transferred to Action subclasses Change-Id: I92c441132946eb5be26c729f70bc32bace4937fb --- RELEASE-NOTES-1.24 | 2 ++ includes/Article.php | 36 ------------------------------------ 2 files changed, 2 insertions(+), 36 deletions(-) diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index f891c8e77d..4f0ae21d18 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -171,6 +171,8 @@ changes to languages because of Bugzilla reports. skin style files used by the module. * Removed getLang() from IContextSource and subclasses. (deprecated since 1.19) * Removed WebRequest::escapeAppendQuery(). (deprecated since 1.20) +* Removed info(), purge(), revert() and rollback() from the Article class; they + have since become subclasses of the Action class. (deprecated since 1.19) ==== Renamed classes ==== * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression diff --git a/includes/Article.php b/includes/Article.php index 04972bc07e..c68c675dc9 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1921,42 +1921,6 @@ class Article implements Page { } } - /** - * Info about this page - * @deprecated since 1.19 - */ - public function info() { - wfDeprecated( __METHOD__, '1.19' ); - Action::factory( 'info', $this )->show(); - } - - /** - * Handle action=purge - * @deprecated since 1.19 - * @return Action|bool|null false if the action is disabled, null if it is not recognised - */ - public function purge() { - return Action::factory( 'purge', $this )->show(); - } - - /** - * Handle action=revert - * @deprecated since 1.19 - */ - public function revert() { - wfDeprecated( __METHOD__, '1.19' ); - Action::factory( 'revert', $this )->show(); - } - - /** - * Handle action=rollback - * @deprecated since 1.19 - */ - public function rollback() { - wfDeprecated( __METHOD__, '1.19' ); - Action::factory( 'rollback', $this )->show(); - } - /** * Use PHP's magic __get handler to handle accessing of * raw WikiPage fields for backwards compatibility. -- 2.20.1