- if ( "" == $HTTP_COOKIE_VARS[session_name()])
- {
- # Don't go back to login page; they won't get time to
- # enable cookies and send us one, so they'll get this msg again. Instead,
- # let them enable cookies on the error page, then go back to login page.
- # XXX: wipes returnto, unfortunately.
-
- $returnto = "Special:Userlogin";
- $wgOut->errorpage( "nocookies", "nocookiestext" );
- return false;
- }