Set the wiki ID for AssembleUploadChunks.php call for wiki farms.
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 7 Jan 2013 22:32:14 +0000 (14:32 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 7 Jan 2013 22:32:21 +0000 (14:32 -0800)
Change-Id: I342998b45309315b9a1dc75833c997c286874505

includes/api/ApiUpload.php

index d68c515..377bfbf 100644 (file)
@@ -218,6 +218,7 @@ class ApiUpload extends ApiBase {
                                        $cmd = wfShellWikiCmd(
                                                "$IP/includes/upload/AssembleUploadChunks.php",
                                                array(
+                                                       '--wiki', wfWikiID(),
                                                        '--filename', $this->mParams['filename'],
                                                        '--filekey', $this->mParams['filekey'],
                                                        '--userid', $this->getUser()->getId(),