X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiLogout.php;h=bf0ca9c68b847f99573e4da4c93211ec7d8da11a;hb=42a95b7a93e814b159907372ee108e4da0da6aa4;hp=324f4b2fdf6126d625ba930d94b96bf53d3a7306;hpb=a8b5e408bf8df6a02d18c70ad22ec14f2333abd4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index 324f4b2fdf..bf0ca9c68b 100644 --- a/includes/api/ApiLogout.php +++ b/includes/api/ApiLogout.php @@ -39,28 +39,17 @@ class ApiLogout extends ApiBase { // Give extensions to do something after user logout $injected_html = ''; - wfRunHooks( 'UserLogoutComplete', array( &$user, &$injected_html, $oldName ) ); + Hooks::run( 'UserLogoutComplete', array( &$user, &$injected_html, $oldName ) ); } public function isReadMode() { return false; } - public function getAllowedParams() { - return array(); - } - - public function getParamDescription() { - return array(); - } - - public function getDescription() { - return 'Log out and clear session data.'; - } - - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=logout' => 'Log the current user out', + 'action=logout' + => 'apihelp-logout-example-logout', ); }