From dc0dd31776704e46e892a09ba6e8c60c3b4d10cf Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 2 Jan 2016 15:37:15 +0000 Subject: [PATCH] OutputPage::permissionRequired() was removed Change-Id: I9ff1d601cf5fc3402f22bdaf829ae2e287652d31 --- RELEASE-NOTES-1.27 | 1 + includes/OutputPage.php | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27 index a243f36373..458f5df2c1 100644 --- a/RELEASE-NOTES-1.27 +++ b/RELEASE-NOTES-1.27 @@ -198,6 +198,7 @@ changes to languages because of Phabricator reports. maintenance/dumpTextPass.php instead. * WikiPage::getUsedTemplates() was removed (deprecated since 1.19). * wfEmptyMsg() was removed (deprecated since 1.18). +* OutputPage::permissionRequired() was removed (deprecated since 1.18). == Compatibility == diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 3e0564b744..12b8204ade 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2488,17 +2488,6 @@ class OutputPage extends ContextSource { $this->returnToMain(); } - /** - * Display an error page noting that a given permission bit is required. - * @deprecated since 1.18, just throw the exception directly - * @param string $permission Key required - * @throws PermissionsError - */ - public function permissionRequired( $permission ) { - wfDeprecated( __METHOD__, '1.18' ); - throw new PermissionsError( $permission ); - } - /** * Format a list of error messages * -- 2.20.1