From: umherirrender Date: Sat, 28 Jun 2014 13:38:24 +0000 (+0200) Subject: Remove Title::updateTitleProtection() (deprecated since 1.19) X-Git-Tag: 1.31.0-rc.0~15043 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=1e10fcca50a179a7e8cfce5507c041aacb059e01;p=lhc%2Fweb%2Fwiklou.git Remove Title::updateTitleProtection() (deprecated since 1.19) Change-Id: I7ebfa106ef72a4aa6659332210e3401bfa02cafc --- diff --git a/RELEASE-NOTES-1.24 b/RELEASE-NOTES-1.24 index 215167f7a3..1dd6bcfaee 100644 --- a/RELEASE-NOTES-1.24 +++ b/RELEASE-NOTES-1.24 @@ -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 diff --git a/includes/Title.php b/includes/Title.php index b8b0e30654..3c5b80f85c 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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 */