From 3f8dddad8623f820abf66a1bff96fc6772047165 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Thu, 19 Mar 2015 09:31:54 +0100
Subject: [PATCH] fix release upload during plugin setup, fixes #6

---
 controllers/myplugins.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/controllers/myplugins.php b/controllers/myplugins.php
index 198e27a..728f8f7 100644
--- a/controllers/myplugins.php
+++ b/controllers/myplugins.php
@@ -121,7 +121,7 @@ class MypluginsController extends PluginController {
 
         if (Request::submitted("release")) {
             $release_data = Request::getArray("release");
-            if ($release_data['type'] !== "zipfile" || $_FILES['release_file']['tmp_path']) {
+            if ($release_data['type'] !== "zipfile" || $_FILES['release_file']['tmp_name']) {
                 $release = new MarketRelease();
                 if (!isset($release_data['repository_overwrites_descriptionfrom'])) {
                     $release_data['repository_overwrites_descriptionfrom'] = 0;
-- 
GitLab