Deprecate OutputPage::rateLimited()
authorKevin Israel <pleasestand@live.com>
Mon, 29 Sep 2014 04:01:30 +0000 (00:01 -0400)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 7 Oct 2014 10:35:59 +0000 (12:35 +0200)
Change-Id: I140e6af9dde090b9f8611e7b53a650061f2e84eb

RELEASE-NOTES-1.25
includes/OutputPage.php

index b5cade1..862b132 100644 (file)
@@ -58,8 +58,9 @@ changes to languages because of Bugzilla reports.
   since 1.20)
 * Removed 'jquery.json' module. (deprecated since 1.24)
   Use the 'json' module and global JSON object instead.
-* Deprecated OutputPage::readOnlyPage(). Also, it will now throw an MWException
-  if called with one or more arguments.
+* Deprecated OutputPage::readOnlyPage() and OutputPage::rateLimited().
+  Also, the former will now throw an MWException if called with one or more
+  arguments.
 
 == Compatibility ==
 
index 75b1a32..34d3ce6 100644 (file)
@@ -2435,8 +2435,11 @@ class OutputPage extends ContextSource {
        /**
         * Turn off regular page output and return an error response
         * for when rate limiting has triggered.
+        *
+        * @deprecated since 1.25; throw the exception directly
         */
        public function rateLimited() {
+               wfDeprecated( __METHOD__, '1.25' );
                throw new ThrottledError;
        }