r97898 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97897‎ | r97898 | r97899 >
Date:08:17, 23 September 2011
Author:ariel
Status:ok
Tags:
Comment:
mft r97895 (call MWScript for invocation of fetchText.php, if needed)
Modified paths:
  • /branches/wmf/1.18wmf1/maintenance/dumpTextPass.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/maintenance/dumpTextPass.php
@@ -422,12 +422,23 @@
423423 function openSpawn() {
424424 global $IP;
425425
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+ }
432443 $spec = array(
433444 0 => array( "pipe", "r" ),
434445 1 => array( "pipe", "w" ),

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97895add mwscript handling for call of fetchText.php maintenance scriptariel07:48, 23 September 2011

Status & tagging log