mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Make upload_target_type hint compatible with old 3-letter shortcuts
This commit is contained in:
parent
798733cf11
commit
6c07ce75e6
1 changed files with 2 additions and 2 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue