Index: trunk/phase3/includes/SpecialUserlogout.php |
— | — | @@ -10,12 +10,13 @@ |
11 | 11 | function wfSpecialUserlogout() { |
12 | 12 | global $wgUser, $wgOut; |
13 | 13 | |
| 14 | + $oldName = $wgUser->getName(); |
14 | 15 | $wgUser->logout(); |
15 | 16 | $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
16 | 17 | |
17 | 18 | // Hook. |
18 | 19 | $injected_html = ''; |
19 | | - wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html) ); |
| 20 | + wfRunHooks( 'UserLogoutComplete', array(&$wgUser, &$injected_html, $oldName) ); |
20 | 21 | |
21 | 22 | $wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) . $injected_html ); |
22 | 23 | $wgOut->returnToMain(); |