mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
#133 PHP 5.4 이상에서의 호환성 개선
This commit is contained in:
parent
23406d1708
commit
1b60833bad
17 changed files with 78 additions and 31 deletions
|
|
@ -41,7 +41,7 @@ class fileModel extends file
|
|||
$file_info = $tmp_files[$i];
|
||||
if(!$file_info->file_srl) continue;
|
||||
|
||||
$obj = null;
|
||||
$obj = new stdClass;
|
||||
$obj->file_srl = $file_info->file_srl;
|
||||
$obj->source_filename = $file_info->source_filename;
|
||||
$obj->file_size = $file_info->file_size;
|
||||
|
|
@ -117,7 +117,7 @@ class fileModel extends file
|
|||
if(!$file_config) $file_config = $file_module_config;
|
||||
|
||||
$config = new stdClass();
|
||||
|
||||
|
||||
if($file_config)
|
||||
{
|
||||
$config->allowed_filesize = $file_config->allowed_filesize;
|
||||
|
|
@ -303,7 +303,7 @@ class fileModel extends file
|
|||
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($file_info->upload_target_srl);
|
||||
if($oDocument->isExists()) $document_grant = $oDocument->isGranted();
|
||||
if($oDocument->isExists()) $document_grant = $oDocument->isGranted();
|
||||
|
||||
$file_grant->is_deletable = ($document_grant || $member_info->is_admin == 'Y' || $member_info->member_srl == $file_info->member_srl || $grant->manager);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue