Fix for r70571, still have to use $_COOKIE here too, $wgContLang is undefined so far
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 6 Aug 2010 21:10:18 +0000 (21:10 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 6 Aug 2010 21:10:18 +0000 (21:10 +0000)
includes/Setup.php

index 77d13d4..133be74 100644 (file)
@@ -305,7 +305,7 @@ if( !wfIniGetBool( 'session.auto_start' ) )
        session_name( $wgSessionName ? $wgSessionName : $wgCookiePrefix . '_session' );
 
 if( !defined( 'MW_NO_SESSION' ) ) {
-       if( !$wgCommandLineMode && ( $wgRequest->checkSessionCookie() || $wgRequest->getCookie( 'Token' ) ) ) {
+       if( !$wgCommandLineMode && ( $wgRequest->checkSessionCookie() || isset( $_COOKIE[$wgCookiePrefix.'Token'] ) ) ) {
                wfIncrStats( 'request_with_session' );
                wfSetupSession();
                $wgSessionStarted = true;