r35410 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35409‎ | r35410 | r35411 >
Date:16:21, 27 May 2008
Author:tstarling
Status:old
Tags:
Comment:
Hook change required for r35409
Modified paths:
  • /trunk/phase3/includes/SpecialUserlogout.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialUserlogout.php
@@ -10,12 +10,13 @@
1111 function wfSpecialUserlogout() {
1212 global $wgUser, $wgOut;
1313
 14+ $oldName = $wgUser->getName();
1415 $wgUser->logout();
1516 $wgOut->setRobotpolicy( 'noindex,nofollow' );
1617
1718 // Hook.
1819 $injected_html = '';
19 - wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html) );
 20+ wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html, $oldName) );
2021
2122 $wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) . $injected_html );
2223 $wgOut->returnToMain();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r35409* Use the same authentication system for autologout as for autologin. It shou...tstarling16:20, 27 May 2008

Status & tagging log

  NODES
os 1
text 1