Remove Title::updateTitleProtection() (deprecated since 1.19)
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 28 Jun 2014 13:38:24 +0000 (15:38 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 8 Jul 2014 23:41:19 +0000 (01:41 +0200)
Change-Id: I7ebfa106ef72a4aa6659332210e3401bfa02cafc

RELEASE-NOTES-1.24
includes/Title.php

index 215167f..1dd6bcf 100644 (file)
@@ -220,6 +220,7 @@ changes to languages because of Bugzilla reports.
 * Removed Preferences::loadOldSearchNs(). (deprecated since 1.19)
 * Removed OutputPage::getStatusMessage(). (deprecated since 1.18)
 * Removed OutputPage::isUserJsAllowed(). (deprecated since 1.18)
+* Removed Title::updateTitleProtection(). (deprecated since 1.19)
 
 ==== Renamed classes ====
 * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression
index b8b0e30..3c5b80f 100644 (file)
@@ -2583,30 +2583,6 @@ class Title {
                return $this->mTitleProtection;
        }
 
-       /**
-        * Update the title protection status
-        *
-        * @deprecated since 1.19; use WikiPage::doUpdateRestrictions() instead.
-        * @param string $create_perm Permission required for creation
-        * @param string $reason Reason for protection
-        * @param string $expiry Expiry timestamp
-        * @return bool
-        */
-       public function updateTitleProtection( $create_perm, $reason, $expiry ) {
-               wfDeprecated( __METHOD__, '1.19' );
-
-               global $wgUser;
-
-               $limit = array( 'create' => $create_perm );
-               $expiry = array( 'create' => $expiry );
-
-               $page = WikiPage::factory( $this );
-               $cascade = false;
-               $status = $page->doUpdateRestrictions( $limit, $expiry, $cascade, $reason, $wgUser );
-
-               return $status->isOK();
-       }
-
        /**
         * Remove any title protection due to page existing
         */