X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiClearHasMsg.php;h=a5474b5823a026a0b4f8d021aaaa3c7b462f23fa;hb=872dc01de3bfae0db3f952b75b95d98beb47449e;hp=99242a8b0dba32542bfab650b229e5d43adcc5ce;hpb=17b3bab4d636df56e4a4b55e52fcda9fde892804;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiClearHasMsg.php b/includes/api/ApiClearHasMsg.php index 99242a8b0d..a5474b5823 100644 --- a/includes/api/ApiClearHasMsg.php +++ b/includes/api/ApiClearHasMsg.php @@ -30,13 +30,7 @@ class ApiClearHasMsg extends ApiBase { public function execute() { $user = $this->getUser(); - if ( $this->getRequest()->wasPosted() ) { - $user->setNewtalk( false ); - } else { - DeferredUpdates::addCallableUpdate( function () use ( $user ) { - $user->setNewtalk( false ); - } ); - } + $user->setNewtalk( false ); $this->getResult()->addValue( null, $this->getModuleName(), 'success' ); }