From: Rotem Liss Date: Tue, 8 Aug 2006 14:20:33 +0000 (+0000) Subject: Finally removing the deprecated and unused functions User::isSysop, User::isBureaucra... X-Git-Tag: 1.31.0-rc.0~56042 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=fe4fd859757aa6490a71d87683b97a0dcb7de3e7;p=lhc%2Fweb%2Fwiklou.git Finally removing the deprecated and unused functions User::isSysop, User::isBureaucrat and User::isDeveloper, and updating the release notes. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index beb1e9962f..52b3918bcd 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -116,6 +116,10 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 6753) Fixed broken Kazakh linktrail (kk) * (bug 6700) Added Kazakh language variants to Names.php * (bug 6827) some i18n specific maintenance scripts fails after merge of localisation-work branch +* Throwed an exception for the deprecated functions OutputPage::sysopRequired and + OutputPage::developerRequired - use OutputPage::permissionRequired instead. +* Removed the deprecated functions User::isSysop, User::isBureaucrat and User::isDeveloper - + use User::isAllowed instead. == Languages updated == diff --git a/includes/User.php b/includes/User.php index 7a77cd3a6b..f4cbbc8e0e 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1306,30 +1306,6 @@ class User { return !$this->isLoggedIn(); } - /** - * Deprecated in 1.6, die in 1.7, to be removed in 1.8 - * @deprecated - */ - function isSysop() { - throw new MWException( "Call to deprecated (v1.7) User::isSysop() method\n" ); - } - - /** - * Deprecated in 1.6, die in 1.7, to be removed in 1.8 - * @deprecated - */ - function isDeveloper() { - throw new MWException( "Call to deprecated (v1.7) User::isDeveloper() method\n" ); - } - - /** - * Deprecated in 1.6, die in 1.7, to be removed in 1.8 - * @deprecated - */ - function isBureaucrat() { - throw new MWException( "Call to deprecated (v1.7) User::isBureaucrat() method\n" ); - } - /** * Whether the user is a bot * @deprecated