From c1f9b1f7b1b77776192048005dcc66dcf3df2bfb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 27 Dec 2014 15:41:37 +0100 Subject: Update to MediaWiki 1.24.1 --- includes/api/ApiClearHasMsg.php | 58 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 includes/api/ApiClearHasMsg.php (limited to 'includes/api/ApiClearHasMsg.php') diff --git a/includes/api/ApiClearHasMsg.php b/includes/api/ApiClearHasMsg.php new file mode 100644 index 00000000..32e20e80 --- /dev/null +++ b/includes/api/ApiClearHasMsg.php @@ -0,0 +1,58 @@ +getUser(); + $user->setNewtalk( false ); + $this->getResult()->addValue( null, $this->getModuleName(), 'success' ); + } + + public function isWriteMode() { + return true; + } + + public function mustBePosted() { + return false; + } + + public function getDescription() { + return array( 'Clears the hasmsg flag for current user.' ); + } + + public function getExamples() { + return array( + 'api.php?action=clearhasmsg' => 'Clears the hasmsg flag for current user', + ); + } + + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:ClearHasMsg'; + } +} -- cgit v1.2.3-54-g00ecf