Index: trunk/phase3/maintenance/dumpTextPass.php |
— | — | @@ -427,12 +427,23 @@ |
428 | 428 | function openSpawn() { |
429 | 429 | global $IP; |
430 | 430 | |
431 | | - $cmd = implode( " ", |
432 | | - array_map( 'wfEscapeShellArg', |
433 | | - array( |
434 | | - $this->php, |
435 | | - "$IP/maintenance/fetchText.php", |
436 | | - '--wiki', wfWikiID() ) ) ); |
| 431 | + if ( file_exists( "$IP/../multiversion/MWScript.php" ) ) { |
| 432 | + $cmd = implode( " ", |
| 433 | + array_map( 'wfEscapeShellArg', |
| 434 | + array( |
| 435 | + $this->php, |
| 436 | + "$IP/../multiversion/MWScript.php", |
| 437 | + "fetchText.php", |
| 438 | + '--wiki', wfWikiID() ) ) ); |
| 439 | + } |
| 440 | + else { |
| 441 | + $cmd = implode( " ", |
| 442 | + array_map( 'wfEscapeShellArg', |
| 443 | + array( |
| 444 | + $this->php, |
| 445 | + "$IP/maintenance/fetchText.php", |
| 446 | + '--wiki', wfWikiID() ) ) ); |
| 447 | + } |
437 | 448 | $spec = array( |
438 | 449 | 0 => array( "pipe", "r" ), |
439 | 450 | 1 => array( "pipe", "w" ), |