From 336360dcee1dea7a1721a72203c9df11db1cd011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Thu, 12 Sep 2024 19:13:47 +0900 Subject: [PATCH] Automation init...3 --- app/Libraries/MyStorage/Mangboard/FileLibrary.php | 6 +++++- app/Libraries/MyStorage/Mangboard/SmallImageLibrary.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Libraries/MyStorage/Mangboard/FileLibrary.php b/app/Libraries/MyStorage/Mangboard/FileLibrary.php index 89e50a5..c4d6fd2 100644 --- a/app/Libraries/MyStorage/Mangboard/FileLibrary.php +++ b/app/Libraries/MyStorage/Mangboard/FileLibrary.php @@ -95,7 +95,11 @@ class FileLibrary extends MyStorageLibrary $fileInfos = pathinfo($this->_imageLibrary->getDestinationPath() . DIRECTORY_SEPARATOR . $this->getOriginName(), PATHINFO_ALL); $dstFile = $fileInfos['filename'] . "_small." . $fileInfos['extension']; $this->_imageLibrary->setDestinationFile($dstFile); - $formDatas['file_path'] = $this->_imageLibrary->create($this->getOriginName()); + $formDatas['file_path'] = sprintf( + "%s/%s", + $this->getPath(), + $this->_imageLibrary->create($this->getOriginName()) + ); $formDatas['user_pid'] = $this->getUserEntity()->getPK(); $formDatas['user_name'] = $this->getUserEntity()->getTitle(); diff --git a/app/Libraries/MyStorage/Mangboard/SmallImageLibrary.php b/app/Libraries/MyStorage/Mangboard/SmallImageLibrary.php index 83d533b..ea03a77 100644 --- a/app/Libraries/MyStorage/Mangboard/SmallImageLibrary.php +++ b/app/Libraries/MyStorage/Mangboard/SmallImageLibrary.php @@ -73,7 +73,7 @@ class SmallImageLibrary extends ImageLibrary $width, $height )); - return sprintf("%s/%s", $this->getSourcePath(), $file); + return $file; } catch (\Exception $e) { log_message("warning", $e->getMessage()); return false;