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