- /**
- * 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 );
- }
-
- /**
- * Produce the stock "please login to use the wiki" page
- *
- * @deprecated since 1.19; throw the exception directly
- */
- public function loginToUse() {
- wfDeprecated( __METHOD__, '1.19' );
- throw new PermissionsError( 'read' );
- }
-