From 99ee5403e0857bb2414a0dceaf334117a070ef11 Mon Sep 17 00:00:00 2001 From: Alex Puiu <=> Date: Thu, 19 May 2022 11:47:30 +0300 Subject: [PATCH] fixes --- index.php | 4 ++-- lib/DeckClass.php | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 7e407cb..40c5684 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@ board = $boardId; $boardStack->stack = $stackId; $boardStack->newTitle = $params; @@ -118,7 +115,7 @@ class DeckClass { for ($i = 0; $i < count($attachments); $i++) { $file = $fullPath . $attachments[$i]; $data = array( - 'file' => new CURLFile($file) + 'file' => new \CURLFile($file) ); $this->apiCall("POST", NC_SERVER . "/index.php/apps/deck/api/v1.0/boards/{$card->board}/stacks/{$card->stack}/cards/{$card->id}/attachments?type=file", $data, true); unlink($file);