http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97897
Revision: 97897 Author: ariel Date: 2011-09-23 08:16:40 +0000 (Fri, 23 Sep 2011) Log Message: ----------- mft r97895 (call MWScript for invocation of fetchText.php, if needed) Modified Paths: -------------- branches/wmf/1.17wmf1/maintenance/dumpTextPass.php Modified: branches/wmf/1.17wmf1/maintenance/dumpTextPass.php =================================================================== --- branches/wmf/1.17wmf1/maintenance/dumpTextPass.php 2011-09-23 08:07:28 UTC (rev 97896) +++ branches/wmf/1.17wmf1/maintenance/dumpTextPass.php 2011-09-23 08:16:40 UTC (rev 97897) @@ -307,12 +307,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 MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs