OutputPage::permissionRequired() was removed
authorReedy <reedy@wikimedia.org>
Sat, 2 Jan 2016 15:37:15 +0000 (15:37 +0000)
committerReedy <reedy@wikimedia.org>
Sat, 2 Jan 2016 17:34:22 +0000 (17:34 +0000)
Change-Id: I9ff1d601cf5fc3402f22bdaf829ae2e287652d31

RELEASE-NOTES-1.27
includes/OutputPage.php

index a243f36..458f5df 100644 (file)
@@ -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 ==
 
index 3e0564b..12b8204 100644 (file)
@@ -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
         *