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
ApiClearHasMsg: Clean up after I341b395e
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiClearHasMsg.php
diff --git
a/includes/api/ApiClearHasMsg.php
b/includes/api/ApiClearHasMsg.php
index
99242a8
..
a5474b5
100644
(file)
--- a/
includes/api/ApiClearHasMsg.php
+++ b/
includes/api/ApiClearHasMsg.php
@@
-30,13
+30,7
@@
class ApiClearHasMsg extends ApiBase {
public function execute() {
$user = $this->getUser();
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' );
}
$this->getResult()->addValue( null, $this->getModuleName(), 'success' );
}