Index: trunk/phase3/includes/Setup.php |
— | — | @@ -308,13 +308,15 @@ |
309 | 309 | session_name( $wgSessionName ? $wgSessionName : $wgCookiePrefix . '_session' ); |
310 | 310 | |
311 | 311 | if( !defined( 'MW_NO_SESSION' ) ) { |
312 | | - if( !$wgCommandLineMode && ( $wgRequest->checkSessionCookie() || isset( $_COOKIE[$wgCookiePrefix.'Token'] ) ) ) { |
313 | | - wfIncrStats( 'request_with_session' ); |
314 | | - wfSetupSession(); |
315 | | - $wgSessionStarted = true; |
316 | | - } else { |
317 | | - wfIncrStats( 'request_without_session' ); |
318 | | - $wgSessionStarted = false; |
| 312 | + if ( !$wgCommandLineMode ) { |
| 313 | + if( ( $wgRequest->checkSessionCookie() || isset( $_COOKIE[$wgCookiePrefix.'Token'] ) ) ) { |
| 314 | + wfIncrStats( 'request_with_session' ); |
| 315 | + wfSetupSession(); |
| 316 | + $wgSessionStarted = true; |
| 317 | + } else { |
| 318 | + wfIncrStats( 'request_without_session' ); |
| 319 | + $wgSessionStarted = false; |
| 320 | + } |
319 | 321 | } |
320 | 322 | } |
321 | 323 | |