Index: trunk/phase3/includes/Title.php |
— | — | @@ -1160,10 +1160,11 @@ |
1161 | 1161 | } else { |
1162 | 1162 | global $wgWhitelistRead; |
1163 | 1163 | |
1164 | | - /** If anon users can create an account, |
1165 | | - they need to reach the login page first! */ |
1166 | | - if( $wgUser->isAllowed( 'createaccount' ) |
1167 | | - && $this->getNamespace() == NS_SPECIAL |
| 1164 | + /** |
| 1165 | + * Always grant access to the login page. |
| 1166 | + * Even anons need to be able to log in. |
| 1167 | + */ |
| 1168 | + if( $this->getNamespace() == NS_SPECIAL |
1168 | 1169 | && $this->getText() == 'Userlogin' ) { |
1169 | 1170 | return true; |
1170 | 1171 | } |