X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FEditPage.php;h=85a30147f39d9f960d4f907f7ed74b2f3e19b709;hb=5befb9b74790a99aec5514ad8f8784a4fb085288;hp=f3a41c46b991f7429f1e645ab9998709f9df9b89;hpb=4f985950ba5df1efa0f6d91ccaf52a55e33ece00;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index f3a41c46b9..85a30147f3 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -527,7 +527,10 @@ class EditPage { if ( $permErrors ) { wfDebug( __METHOD__ . ": User can't edit\n" ); // Auto-block user's IP if the account was "hard" blocked - $wgUser->spreadAnyEditBlock(); + $user = $wgUser; + DeferredUpdates::addCallableUpdate( function() use ( $user ) { + $user->spreadAnyEditBlock(); + } ); $this->displayPermissionsError( $permErrors );