Index: trunk/phase3/includes/Setup.php |
— | — | @@ -361,7 +361,10 @@ |
362 | 362 | $wgCookieSecure = ( substr( $wgServer, 0, 6 ) === 'https:' ); |
363 | 363 | } |
364 | 364 | |
365 | | -if ( $wgDebugToolbar ) { |
| 365 | +// Disable MWDebug for command line mode, this prevents MWDebug from eating up |
| 366 | +// all the memory from logging SQL queries on maintenance scripts |
| 367 | +global $wgCommandLineMode; |
| 368 | +if ( $wgDebugToolbar && !$wgCommandLineMode ) { |
366 | 369 | MWDebug::init(); |
367 | 370 | } |
368 | 371 | |
— | — | @@ -410,7 +413,6 @@ |
411 | 414 | } |
412 | 415 | |
413 | 416 | # Useful debug output |
414 | | -global $wgCommandLineMode; |
415 | 417 | if ( $wgCommandLineMode ) { |
416 | 418 | $wgRequest = new FauxRequest( array() ); |
417 | 419 | |