diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2008-08-15 01:29:47 +0200 |
commit | 370e83bb0dfd0c70de268c93bf07ad5ee0897192 (patch) | |
tree | 491674f4c242e4d6ba0d04eafa305174c35a3391 /includes/api/ApiLogout.php | |
parent | f4debf0f12d0524d2b2427c55ea3f16b680fad97 (diff) |
Update auf 1.13.0
Diffstat (limited to 'includes/api/ApiLogout.php')
-rw-r--r-- | includes/api/ApiLogout.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index d578acf3..694c9e3c 100644 --- a/includes/api/ApiLogout.php +++ b/includes/api/ApiLogout.php @@ -29,10 +29,10 @@ if (!defined('MEDIAWIKI')) { } /** - * API module to allow users to log out of the wiki. API equivalent of + * API module to allow users to log out of the wiki. API equivalent of * Special:Userlogout. * - * @addtogroup API + * @ingroup API */ class ApiLogout extends ApiBase { @@ -43,6 +43,10 @@ class ApiLogout extends ApiBase { public function execute() { global $wgUser; $wgUser->logout(); + + // Give extensions to do something after user logout + $injected_html = ''; + wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html) ); } public function getAllowedParams() { @@ -66,6 +70,6 @@ class ApiLogout extends ApiBase { } public function getVersion() { - return __CLASS__ . ': $Id$'; + return __CLASS__ . ': $Id: ApiLogout.php 35294 2008-05-24 20:44:49Z btongminh $'; } } |