dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Also set the queue types map when rebuilding the ready queue map
[lhc/web/wiklou.git]
/
includes
/
AjaxDispatcher.php
diff --git
a/includes/AjaxDispatcher.php
b/includes/AjaxDispatcher.php
index
b00cf30
..
c9ca128
100644
(file)
--- a/
includes/AjaxDispatcher.php
+++ b/
includes/AjaxDispatcher.php
@@
-63,7
+63,7
@@
class AjaxDispatcher {
$this->mode = "post";
}
$this->mode = "post";
}
- switch( $this->mode ) {
+ switch
( $this->mode ) {
case 'get':
$this->func_name = isset( $_GET["rs"] ) ? $_GET["rs"] : '';
if ( ! empty( $_GET["rsargs"] ) ) {
case 'get':
$this->func_name = isset( $_GET["rs"] ) ? $_GET["rs"] : '';
if ( ! empty( $_GET["rsargs"] ) ) {
@@
-111,15
+111,13
@@
class AjaxDispatcher {
wfHttpError(
400,
'Bad Request',
wfHttpError(
400,
'Bad Request',
- "unknown function " .
(string)
$this->func_name
+ "unknown function " . $this->func_name
);
);
- } elseif ( !in_array( 'read', User::getGroupPermissions( array( '*' ) ), true )
- && !$wgUser->isAllowed( 'read' ) )
- {
+ } elseif ( !User::isEveryoneAllowed( 'read' ) && !$wgUser->isAllowed( 'read' ) ) {
wfHttpError(
403,
'Forbidden',
wfHttpError(
403,
'Forbidden',
- 'You
must log in
to view pages.' );
+ 'You
are not allowed
to view pages.' );
} else {
wfDebug( __METHOD__ . ' dispatching ' . $this->func_name . "\n" );
} else {
wfDebug( __METHOD__ . ' dispatching ' . $this->func_name . "\n" );