X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fincludes%2FTextPassDumper.php;h=f9b395111393100b56cd60c920ec927f5e2c2d22;hb=9d37c792b2ee408b6a01b43a1a649e6074c11c34;hp=c6738bc7aeeeb64c9d9126e110bc2e719556221f;hpb=34bd6f0b6bd0f0af03b448deddb85cdea358e0fb;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/includes/TextPassDumper.php b/maintenance/includes/TextPassDumper.php index c6738bc7ae..f9b3951113 100644 --- a/maintenance/includes/TextPassDumper.php +++ b/maintenance/includes/TextPassDumper.php @@ -759,6 +759,7 @@ TEXT function openSpawn() { global $IP; + $wiki = WikiMap::getWikiIdFromDbDomain( WikiMap::getCurrentWikiDbDomain() ); if ( count( $this->php ) == 2 ) { $mwscriptpath = $this->php[1]; } else { @@ -771,14 +772,14 @@ TEXT $this->php[0], $mwscriptpath, "fetchText.php", - '--wiki', wfWikiID() ] ) ); + '--wiki', $wiki ] ) ); } else { $cmd = implode( " ", array_map( [ Shell::class, 'escape' ], [ $this->php[0], "$IP/maintenance/fetchText.php", - '--wiki', wfWikiID() ] ) ); + '--wiki', $wiki ] ) ); } $spec = [ 0 => [ "pipe", "r" ],