Followup r75753, combine these into one if block
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 1 Nov 2010 11:50:00 +0000 (11:50 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 1 Nov 2010 11:50:00 +0000 (11:50 +0000)
includes/Setup.php

index 732e46c..d78aade 100644 (file)
@@ -307,16 +307,14 @@ $wgCookiePrefix = strtr($wgCookiePrefix, "=,; +.\"'\\[", "__________");
 if( !wfIniGetBool( 'session.auto_start' ) )
        session_name( $wgSessionName ? $wgSessionName : $wgCookiePrefix . '_session' );
 
-if( !defined( 'MW_NO_SESSION' ) ) {
-       if ( !$wgCommandLineMode ) {
-               if( ( $wgRequest->checkSessionCookie() || isset( $_COOKIE[$wgCookiePrefix.'Token'] ) ) ) {
-                       wfIncrStats( 'request_with_session' );
-                       wfSetupSession();
-                       $wgSessionStarted = true;
-               } else {
-                       wfIncrStats( 'request_without_session' );
-                       $wgSessionStarted = false;
-               }
+if( !defined( 'MW_NO_SESSION' ) && !$wgCommandLineMode ) {
+       if( $wgRequest->checkSessionCookie() || isset( $_COOKIE[$wgCookiePrefix.'Token'] ) ) {
+               wfIncrStats( 'request_with_session' );
+               wfSetupSession();
+               $wgSessionStarted = true;
+       } else {
+               wfIncrStats( 'request_without_session' );
+               $wgSessionStarted = false;
        }
 }