X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fapi%2FApiClearHasMsg.php;h=4ddbd040ca87dac8fe89784460c0f40107b8ef9c;hb=23e5cdb5034dca5bbdfc2ac9c111c5fac20ff579;hp=32e20e80f319bff3a382c78fdc3f4a24117ea76e;hpb=df1406b497698f4262eb10bc11b025b65929b3e9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiClearHasMsg.php b/includes/api/ApiClearHasMsg.php index 32e20e80f3..4ddbd040ca 100644 --- a/includes/api/ApiClearHasMsg.php +++ b/includes/api/ApiClearHasMsg.php @@ -42,14 +42,11 @@ class ApiClearHasMsg extends ApiBase { 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', - ); + protected function getExamplesMessages() { + return [ + 'action=clearhasmsg' + => 'apihelp-clearhasmsg-example-1', + ]; } public function getHelpUrls() {