Index: branches/wmf/1.17wmf1/includes/Setup.php |
— | — | @@ -342,11 +342,11 @@ |
343 | 343 | |
344 | 344 | if( !defined( 'MW_NO_SESSION' ) && !$wgCommandLineMode ) { |
345 | 345 | if( $wgRequest->checkSessionCookie() || isset( $_COOKIE[$wgCookiePrefix.'Token'] ) ) { |
346 | | - wfIncrStats( 'request_with_session' ); |
| 346 | + #wfIncrStats( 'request_with_session' ); |
347 | 347 | wfSetupSession(); |
348 | 348 | $wgSessionStarted = true; |
349 | 349 | } else { |
350 | | - wfIncrStats( 'request_without_session' ); |
| 350 | + #wfIncrStats( 'request_without_session' ); |
351 | 351 | $wgSessionStarted = false; |
352 | 352 | } |
353 | 353 | } |
— | — | @@ -361,8 +361,12 @@ |
362 | 362 | $wgUser = $wgCommandLineMode ? new User : User::newFromSession(); |
363 | 363 | $wgLang = new StubUserLang; |
364 | 364 | $wgOut = new StubObject( 'wgOut', 'OutputPage' ); |
365 | | -$wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) ); |
366 | 365 | |
| 366 | +#$wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) ); |
| 367 | +# Live hack to clear up profiling -- TS |
| 368 | +$class = $wgParserConf['class']; |
| 369 | +$wgParser = new $class( $wgParserConf ); |
| 370 | + |
367 | 371 | $wgMessageCache = new StubObject( 'wgMessageCache', 'MessageCache', |
368 | 372 | array( $messageMemc, $wgUseDatabaseMessages, $wgMsgCacheExpiry ) ); |
369 | 373 | |