r64253 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64252‎ | r64253 | r64254 >
Date:14:19, 27 March 2010
Author:demon
Status:ok
Tags:
Comment:
Skip normal session setup, we do it ourselves in the installer
Modified paths:
  • /branches/new-installer/phase3/config/new-index.php (modified) (history)
  • /branches/new-installer/phase3/includes/Setup.php (modified) (history)

Diff [purge]

Index: branches/new-installer/phase3/includes/Setup.php
@@ -291,13 +291,15 @@
292292 if( !wfIniGetBool( 'session.auto_start' ) )
293293 session_name( $wgSessionName ? $wgSessionName : $wgCookiePrefix . '_session' );
294294
295 -if( !$wgCommandLineMode && ( $wgRequest->checkSessionCookie() || isset( $_COOKIE[$wgCookiePrefix.'Token'] ) ) ) {
296 - wfIncrStats( 'request_with_session' );
297 - wfSetupSession();
298 - $wgSessionStarted = true;
299 -} else {
300 - wfIncrStats( 'request_without_session' );
301 - $wgSessionStarted = false;
 295+if( !defined( 'MW_NO_SESSION' ) ) {
 296+ if( !$wgCommandLineMode && ( $wgRequest->checkSessionCookie() || isset( $_COOKIE[$wgCookiePrefix.'Token'] ) ) ) {
 297+ wfIncrStats( 'request_with_session' );
 298+ wfSetupSession();
 299+ $wgSessionStarted = true;
 300+ } else {
 301+ wfIncrStats( 'request_without_session' );
 302+ $wgSessionStarted = false;
 303+ }
302304 }
303305
304306 wfProfileOut( $fname.'-SetupSession' );
Index: branches/new-installer/phase3/config/new-index.php
@@ -1,6 +1,7 @@
22 <?php
33
44 define( 'MW_NO_DB', 1 );
 5+define( 'MW_NO_SESSION', 1 );
56 define( 'MW_CONFIG_CALLBACK', 'wfInstallerConfig' );
67
78 function wfInstallerConfig() {

Status & tagging log