From 520d784a64ccdc993016e6e4e9821b10075e63ca Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 22 Dec 2012 14:05:21 +0100 Subject: [PATCH] Remove "read" from list of allowed actions on special pages This is no longer needed since this method is no longer called when checking permissions for "read" action. Change-Id: I4d917a4816788febf6b0664665c53a48ae474a67 --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index bdaa66f864..e444a72edf 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1840,7 +1840,7 @@ class Title { private function checkSpecialsAndNSPermissions( $action, $user, $errors, $doExpensiveQueries, $short ) { # Only 'createaccount' and 'execute' can be performed on # special pages, which don't actually exist in the DB. - $specialOKActions = array( 'createaccount', 'execute', 'read' ); + $specialOKActions = array( 'createaccount', 'execute' ); if ( NS_SPECIAL == $this->mNamespace && !in_array( $action, $specialOKActions ) ) { $errors[] = array( 'ns-specialprotected' ); } -- 2.20.1