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
Merge "Remove renamed .inc files from phan config"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialCreateAccount.php
diff --git
a/includes/specials/SpecialCreateAccount.php
b/includes/specials/SpecialCreateAccount.php
index
73beafc
..
2f87c47
100644
(file)
--- a/
includes/specials/SpecialCreateAccount.php
+++ b/
includes/specials/SpecialCreateAccount.php
@@
-63,6
+63,10
@@
class SpecialCreateAccount extends LoginSignupSpecialPage {
$user = $this->getUser();
$status = AuthManager::singleton()->checkAccountCreatePermissions( $user );
if ( !$status->isGood() ) {
$user = $this->getUser();
$status = AuthManager::singleton()->checkAccountCreatePermissions( $user );
if ( !$status->isGood() ) {
+ // track block with a cookie if it doesn't exists already
+ if ( $user->isBlockedFromCreateAccount() ) {
+ $user->trackBlockWithCookie();
+ }
throw new ErrorPageError( 'createacct-error', $status->getMessage() );
}
}
throw new ErrorPageError( 'createacct-error', $status->getMessage() );
}
}