From: Ariel Glenn Date: Fri, 23 Sep 2011 07:48:30 +0000 (+0000) Subject: add mwscript handling for call of fetchText.php maintenance script X-Git-Tag: 1.31.0-rc.0~27464 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=b547246366dd0f8aa85bb638125819c776a943ab;p=lhc%2Fweb%2Fwiklou.git add mwscript handling for call of fetchText.php maintenance script --- diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index 92e049f7df..41fd1cbcb3 100644 --- a/maintenance/dumpTextPass.php +++ b/maintenance/dumpTextPass.php @@ -427,12 +427,23 @@ class TextPassDumper extends BackupDumper { 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" ),