http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97895
Revision: 97895 Author: ariel Date: 2011-09-23 07:48:30 +0000 (Fri, 23 Sep 2011) Log Message: ----------- add mwscript handling for call of fetchText.php maintenance script Modified Paths: -------------- trunk/phase3/maintenance/dumpTextPass.php Modified: trunk/phase3/maintenance/dumpTextPass.php =================================================================== --- trunk/phase3/maintenance/dumpTextPass.php 2011-09-23 07:32:41 UTC (rev 97894) +++ trunk/phase3/maintenance/dumpTextPass.php 2011-09-23 07:48:30 UTC (rev 97895) @@ -427,12 +427,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