When opening the subprocess fetchText.php, pass the complete wiki ID through the...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 6 Dec 2010 09:20:07 +0000 (09:20 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 6 Dec 2010 09:20:07 +0000 (09:20 +0000)
maintenance/dumpTextPass.php

index dbd1177..b0a4c6d 100644 (file)
@@ -322,14 +322,14 @@ class TextPassDumper extends BackupDumper {
        }
 
        function openSpawn() {
-               global $IP, $wgDBname;
+               global $IP;
 
                $cmd = implode( " ",
                        array_map( 'wfEscapeShellArg',
                                array(
                                        $this->php,
                                        "$IP/maintenance/fetchText.php",
-                                       $wgDBname ) ) );
+                                       '--wiki', wfWikiID() ) ) );
                $spec = array(
                        0 => array( "pipe", "r" ),
                        1 => array( "pipe", "w" ),