dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6af761
)
Remove "read" from list of allowed actions on special pages
author
Alexandre Emsenhuber
<ialex.wiki@gmail.com>
Sat, 22 Dec 2012 13:05:21 +0000
(14:05 +0100)
committer
Alexandre Emsenhuber
<ialex.wiki@gmail.com>
Sat, 22 Dec 2012 13:05:21 +0000
(14:05 +0100)
This is no longer needed since this method is no longer called
when checking permissions for "read" action.
Change-Id: I4d917a4816788febf6b0664665c53a48ae474a67
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
bdaa66f
..
e444a72
100644
(file)
--- 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' );
}