From f6d65e533c62f6deb21342d4901ece24497b433e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 4 Jun 2015 07:31:04 +0200 Subject: Update to MediaWiki 1.25.1 --- includes/api/ApiLogout.php | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'includes/api/ApiLogout.php') diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index 324f4b2f..bf0ca9c6 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', ); } -- cgit v1.2.3-54-g00ecf