http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97898
Revision: 97898
Author: ariel
Date: 2011-09-23 08:17:19 +0000 (Fri, 23 Sep 2011)
Log Message:
-----------
mft r97895 (call MWScript for invocation of fetchText.php, if needed)
Modified Paths:
--------------
branches/wmf/1.18wmf1/maintenance/dumpTextPass.php
Modified: branches/wmf/1.18wmf1/maintenance/dumpTextPass.php
===================================================================
--- branches/wmf/1.18wmf1/maintenance/dumpTextPass.php 2011-09-23 08:16:40 UTC
(rev 97897)
+++ branches/wmf/1.18wmf1/maintenance/dumpTextPass.php 2011-09-23 08:17:19 UTC
(rev 97898)
@@ -422,12 +422,23 @@
function openSpawn() {
global $IP;
- $cmd = implode( " ",
- array_map( 'wfEscapeShellArg',
- array(
- $this->php,
- "$IP/maintenance/fetchText.php",
- '--wiki', wfWikiID() ) ) );
+ if ( file_exists( "$IP/../multiversion/MWScript.php" ) ) {
+ $cmd = implode( " ",
+ array_map( 'wfEscapeShellArg',
+ array(
+ $this->php,
+
"$IP/../multiversion/MWScript.php",
+ "fetchText.php",
+ '--wiki', wfWikiID() ) ) );
+ }
+ else {
+ $cmd = implode( " ",
+ array_map( 'wfEscapeShellArg',
+ array(
+ $this->php,
+ "$IP/maintenance/fetchText.php",
+ '--wiki', wfWikiID() ) ) );
+ }
$spec = array(
0 => array( "pipe", "r" ),
1 => array( "pipe", "w" ),
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs