Index: trunk/phase3/includes/User.php |
— | — | @@ -2191,8 +2191,9 @@ |
2192 | 2192 | * @return Boolean: True if action is allowed, else false |
2193 | 2193 | */ |
2194 | 2194 | function isAllowed( $action = '' ) { |
2195 | | - if ( $action === '' ) |
| 2195 | + if ( $action === '' ) { |
2196 | 2196 | return true; // In the spirit of DWIM |
| 2197 | + } |
2197 | 2198 | # Patrolling may not be enabled |
2198 | 2199 | if( $action === 'patrol' || $action === 'autopatrol' ) { |
2199 | 2200 | global $wgUseRCPatrol, $wgUseNPPatrol; |