Index: trunk/phase3/includes/Title.php |
— | — | @@ -1175,7 +1175,8 @@ |
1176 | 1176 | * |
1177 | 1177 | * @param $action String action that permission needs to be checked for |
1178 | 1178 | * @param $user User to check |
1179 | | - * @param $doExpensiveQueries Bool Set this to false to avoid doing unnecessary queries. |
| 1179 | + * @param $doExpensiveQueries Bool Set this to false to avoid doing unnecessary queries by |
| 1180 | + * skipping checks for cascading protections and user blocks. |
1180 | 1181 | * @param $ignoreErrors Array of Strings Set this to a list of message keys whose corresponding errors may be ignored. |
1181 | 1182 | * @return Array of arguments to wfMsg to explain permissions problems. |
1182 | 1183 | */ |
— | — | @@ -1521,7 +1522,7 @@ |
1522 | 1523 | * @return Array list of errors |
1523 | 1524 | */ |
1524 | 1525 | private function checkUserBlock( $action, $user, $errors, $doExpensiveQueries, $short ) { |
1525 | | - if( $short && count( $errors ) > 0 ) { |
| 1526 | + if( !$doExpensiveQueries ) { |
1526 | 1527 | return $errors; |
1527 | 1528 | } |
1528 | 1529 | |