From: withoutaname Date: Sun, 22 Jun 2014 00:57:41 +0000 (-0700) Subject: Remove info(), purge(), revert() and rollback() from Article.php X-Git-Tag: 1.31.0-rc.0~15301 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=0db6b729866268101b517fe799513a8eee2b4628;p=lhc%2Fweb%2Fwiklou.git Remove info(), purge(), revert() and rollback() from Article.php Deprecated since 1.19 and transferred to Action subclasses Change-Id: I92c441132946eb5be26c729f70bc32bace4937fb --- 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.