mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +09:00
#486 관리자 파일 업로드 사이즈 표시 문제 처리
This commit is contained in:
parent
8e48231fea
commit
a2f109d86a
1 changed files with 10 additions and 13 deletions
|
|
@ -226,15 +226,7 @@ class fileModel extends file
|
||||||
function getUploadConfig()
|
function getUploadConfig()
|
||||||
{
|
{
|
||||||
$logged_info = Context::get('logged_info');
|
$logged_info = Context::get('logged_info');
|
||||||
$file_config = new stdClass();
|
|
||||||
if($logged_info->is_admin == 'Y')
|
|
||||||
{
|
|
||||||
$file_config->allowed_filesize = preg_replace("/[a-z]/is","",ini_get('upload_max_filesize'));
|
|
||||||
$file_config->allowed_attach_size = preg_replace("/[a-z]/is","",ini_get('upload_max_filesize'));
|
|
||||||
$file_config->allowed_filetypes = '*.*';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$module_srl = Context::get('module_srl');
|
$module_srl = Context::get('module_srl');
|
||||||
// Get the current module if module_srl doesn't exist
|
// Get the current module if module_srl doesn't exist
|
||||||
if(!$module_srl)
|
if(!$module_srl)
|
||||||
|
|
@ -243,6 +235,11 @@ class fileModel extends file
|
||||||
$module_srl = $current_module_info->module_srl;
|
$module_srl = $current_module_info->module_srl;
|
||||||
}
|
}
|
||||||
$file_config = $this->getFileConfig($module_srl);
|
$file_config = $this->getFileConfig($module_srl);
|
||||||
|
|
||||||
|
if($logged_info->is_admin == 'Y')
|
||||||
|
{
|
||||||
|
$file_config->allowed_filesize = preg_replace("/[a-z]/is","",ini_get('upload_max_filesize'));
|
||||||
|
$file_config->allowed_filetypes = '*.*';
|
||||||
}
|
}
|
||||||
return $file_config;
|
return $file_config;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue