Added iterator interface to ResultWrapper. No support in Oracle yet. Updated document...
[lhc/web/wiklou.git] / includes / SpecialUserlogout.php
index 808de18..6e464ce 100644 (file)
@@ -1,14 +1,26 @@
-<?
+<?php
+/**
+ *
+ * @addtogroup SpecialPage
+ */
 
-function wfSpecialUserlogout()
-{
-       global $wgUser, $wgOut, $returnto;
+/**
+ * constructor
+ */
+function wfSpecialUserlogout() {
+       global $wgUser, $wgOut;
 
-       $wgUser->logout();
-       $wgOut->mCookies = array();
-       $wgOut->setRobotpolicy( "noindex,nofollow" );
-       $wgOut->addHTML( wfMsg( "logouttext" ) . "\n<p>" );
-       $wgOut->returnToMain();
+       if (wfRunHooks('UserLogout', array(&$wgUser))) {
+
+               $wgUser->logout();
+
+               wfRunHooks('UserLogoutComplete', array(&$wgUser));
+
+               $wgOut->setRobotpolicy( 'noindex,nofollow' );
+               $wgOut->addHTML( wfMsgExt( 'logouttext', array( 'parse' ) ) );
+               $wgOut->returnToMain();
+
+       }
 }
 
-?>
+