From b9b85843572bf283f48285001e276ba7e61b63f6 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 22 Feb 2009 13:37:51 +0100 Subject: updated to MediaWiki 1.14.0 --- includes/api/ApiLogout.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'includes/api/ApiLogout.php') diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index 694c9e3c..8b178f6a 100644 --- a/includes/api/ApiLogout.php +++ b/includes/api/ApiLogout.php @@ -42,11 +42,12 @@ class ApiLogout extends ApiBase { public function execute() { global $wgUser; + $oldName = $wgUser->getName(); $wgUser->logout(); // Give extensions to do something after user logout $injected_html = ''; - wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html) ); + wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html, $oldName) ); } public function getAllowedParams() { @@ -70,6 +71,6 @@ class ApiLogout extends ApiBase { } public function getVersion() { - return __CLASS__ . ': $Id: ApiLogout.php 35294 2008-05-24 20:44:49Z btongminh $'; + return __CLASS__ . ': $Id: ApiLogout.php 43522 2008-11-15 01:23:39Z brion $'; } } -- cgit v1.2.2