From 07e384e490e1032e8e7f61ddfcfeb1f46716e0fc Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 2 Jan 2016 20:47:25 +0000 Subject: [PATCH] WikiPage::updateRestrictions() was removed Change-Id: If5bdf84b94fec928387ee12492fbec1f511ca059 --- RELEASE-NOTES-1.27 | 1 + includes/page/WikiPage.php | 21 --------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27 index 726d7b2fe0..d811ca98ef 100644 --- a/RELEASE-NOTES-1.27 +++ b/RELEASE-NOTES-1.27 @@ -202,6 +202,7 @@ changes to languages because of Phabricator reports. * OutputPage::blockedPage() was removed (deprecated since 1.18). * User::getSkin() was removed (deprecated since 1.18). * OutputPage::includeJQuery() was removed (deprecated since 1.17). +* WikiPage::updateRestrictions() was removed (deprecated since 1.19). == Compatibility == diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index 6267406897..e67c535f1b 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -3585,27 +3585,6 @@ class WikiPage implements Page, IDBAccessObject { return $wgParser->preSaveTransform( $text, $this->mTitle, $user, $popts ); } - /** - * Update the article's restriction field, and leave a log entry. - * - * @deprecated since 1.19 - * @param array $limit Set of restriction keys - * @param string $reason - * @param int &$cascade Set to false if cascading protection isn't allowed. - * @param array $expiry Per restriction type expiration - * @param User $user The user updating the restrictions - * @return bool True on success - */ - public function updateRestrictions( - $limit = array(), $reason = '', &$cascade = 0, $expiry = array(), User $user = null - ) { - global $wgUser; - - $user = is_null( $user ) ? $wgUser : $user; - - return $this->doUpdateRestrictions( $limit, $expiry, $cascade, $reason, $user )->isOK(); - } - /** * Returns a list of updates to be performed when this page is deleted. The * updates should remove any information about this page from secondary data -- 2.20.1