Remove info(), purge(), revert() and rollback() from Article.php
authorwithoutaname <drevitchi@gmail.com>
Sun, 22 Jun 2014 00:57:41 +0000 (17:57 -0700)
committerwithoutaname <drevitchi@gmail.com>
Sun, 22 Jun 2014 00:57:41 +0000 (17:57 -0700)
Deprecated since 1.19 and transferred to Action subclasses

Change-Id: I92c441132946eb5be26c729f70bc32bace4937fb

RELEASE-NOTES-1.24
includes/Article.php

index f891c8e..4f0ae21 100644 (file)
@@ -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
index 04972bc..c68c675 100644 (file)
@@ -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.