From 6c07ce75e6bb93a961275ed769cbc019c4b3cc76 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Mon, 7 Oct 2024 22:38:53 +0900 Subject: [PATCH] Make upload_target_type hint compatible with old 3-letter shortcuts --- modules/file/file.model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/file/file.model.php b/modules/file/file.model.php index 2e2e5118d..67c44f418 100644 --- a/modules/file/file.model.php +++ b/modules/file/file.model.php @@ -32,7 +32,7 @@ class FileModel extends File // Get uploaded files if($upload_target_srl) { - if (!$upload_target_type || $upload_target_type === 'document') + if (!$upload_target_type || $upload_target_type === 'doc' || $upload_target_type === 'document') { $oDocument = DocumentModel::getDocument($upload_target_srl); } @@ -44,7 +44,7 @@ class FileModel extends File // Check permissions of the comment if(!$oDocument || !$oDocument->isExists()) { - if (!$upload_target_type || $upload_target_type === 'comment') + if (!$upload_target_type || $upload_target_type === 'com' || $upload_target_type === 'comment') { $oComment = CommentModel::getComment($upload_target_srl); if($oComment->isExists())