From 18d5de14ba2d1d4e94727a4c85354be336b29438 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 15 Nov 2008 01:23:39 +0000 Subject: [PATCH] $oldName parameter to UserLogoutComplete hook call was missing. Caused this warning (harmless in practice): PHP Warning: Missing argument 3 for CentralAuthHooks::onUserLogoutComplete() in /usr/local/apache/common-local/php-1.5/extensions/CentralAuth/CentralAuthHooks.php on line 217 --- includes/api/ApiLogout.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index e5898a6f01..000409e73e 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() { -- 2.20.1