X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialCreateAccount.php;h=2f87c478bbd043d144d119fb3f3b7ffdd0bc546b;hb=a9164f143a59a8d957a1d7f205715ac57fff3c8c;hp=73beafce0f5ece6a1e732256de2ca7c1d25de260;hpb=a5be382adfdad4678eec18413c6a118cb3284daf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialCreateAccount.php b/includes/specials/SpecialCreateAccount.php index 73beafce0f..2f87c478bb 100644 --- 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() ) { + // track block with a cookie if it doesn't exists already + if ( $user->isBlockedFromCreateAccount() ) { + $user->trackBlockWithCookie(); + } throw new ErrorPageError( 'createacct-error', $status->getMessage() ); } }