MediaWiki r35410 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r35409‎ | r35410 (on ViewVC)‎ | r35411 >
Date:16:21, 27 May 2008
Author:tstarling
Status:old
Tags:
Comment:
Hook change required for r35409
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/SpecialUserlogout.php
===================================================================
--- trunk/phase3/includes/SpecialUserlogout.php	(revision 35409)
+++ trunk/phase3/includes/SpecialUserlogout.php	(revision 35410)
@@ -10,12 +10,13 @@
 function wfSpecialUserlogout() {
 	global $wgUser, $wgOut;
 
+	$oldName = $wgUser->getName();
 	$wgUser->logout();
 	$wgOut->setRobotpolicy( 'noindex,nofollow' );
 
 	// Hook.
 	$injected_html = '';
-	wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html) );
+	wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html, $oldName) );
 
 	$wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) . $injected_html );
 	$wgOut->returnToMain();

Status & tagging log

  • 15:27, 12 September 2011 Meno25 (Talk | contribs) changed the status of r35410 [removed: ok added: old]
Personal tools
Namespaces
Variants
Views
Actions
Site
Support
Download
Development
Communication
Toolbox