dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure BlockHideName really defaults to 0, not false. Fixes bug 10007.
[lhc/web/wiklou.git]
/
includes
/
SpecialUserlogout.php
diff --git
a/includes/SpecialUserlogout.php
b/includes/SpecialUserlogout.php
index
6c9a888
..
9f1bdb3
100644
(file)
--- a/
includes/SpecialUserlogout.php
+++ b/
includes/SpecialUserlogout.php
@@
-1,26
+1,25
@@
<?php
/**
*
<?php
/**
*
- * @package MediaWiki
- * @subpackage SpecialPage
+ * @addtogroup SpecialPage
*/
/**
* constructor
*/
function wfSpecialUserlogout() {
*/
/**
* constructor
*/
function wfSpecialUserlogout() {
- global $wgUser, $wgOut, $returnto;
+ global $wgUser, $wgOut;
+
+ if (wfRunHooks('UserLogout', array(&$wgUser))) {
- if (wfRunHooks('UserLogout', $wgUser)) {
-
$wgUser->logout();
$wgUser->logout();
-
- $wgOut->mCookies = array();
+
+ wfRunHooks('UserLogoutComplete', array(&$wgUser));
+
$wgOut->setRobotpolicy( 'noindex,nofollow' );
$wgOut->setRobotpolicy( 'noindex,nofollow' );
- $wgOut->addHTML( wfMsg
( 'logouttext'
) );
+ $wgOut->addHTML( wfMsg
Ext( 'logouttext', array( 'parse' )
) );
$wgOut->returnToMain();
$wgOut->returnToMain();
-
- wfRunHooks('UserLogoutComplete', $wgUser);
+
}
}
}
}