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:
9262f69
)
Always grant access to Special:Userlogin, even if the user can't create an account...
author
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 15 Oct 2006 06:36:01 +0000
(06:36 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 15 Oct 2006 06:36:01 +0000
(06:36 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
03489b5
..
acc4b89
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-1160,10
+1160,11
@@
class Title {
} else {
global $wgWhitelistRead;
- /** If anon users can create an account,
- they need to reach the login page first! */
- if( $wgUser->isAllowed( 'createaccount' )
- && $this->getNamespace() == NS_SPECIAL
+ /**
+ * Always grant access to the login page.
+ * Even anons need to be able to log in.
+ */
+ if( $this->getNamespace() == NS_SPECIAL
&& $this->getText() == 'Userlogin' ) {
return true;
}