From 1e10fcca50a179a7e8cfce5507c041aacb059e01 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 28 Jun 2014 15:38:24 +0200 Subject: [PATCH] Remove Title::updateTitleProtection() (deprecated since 1.19) Change-Id: I7ebfa106ef72a4aa6659332210e3401bfa02cafc --- RELEASE-NOTES-1.24 | 1 + includes/Title.php | 24 ------------------------ 2 files changed, 1 insertion(+), 24 deletions(-) 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 */ -- 2.20.1