From 370e83bb0dfd0c70de268c93bf07ad5ee0897192 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 15 Aug 2008 01:29:47 +0200 Subject: Update auf 1.13.0 --- includes/api/ApiLogout.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'includes/api/ApiLogout.php') 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 $'; } } -- cgit v1.2.2