From: Alexandre Emsenhuber Date: Sat, 22 Dec 2012 13:05:21 +0000 (+0100) Subject: Remove "read" from list of allowed actions on special pages X-Git-Tag: 1.31.0-rc.0~21143^2 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=520d784a64ccdc993016e6e4e9821b10075e63ca;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' ); }