mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-13 16:34:52 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1136 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6cd8ae62bb
commit
6de6b03a5e
7 changed files with 18 additions and 5 deletions
|
|
@ -32,11 +32,13 @@
|
|||
$logged_info = Context::get('logged_info');
|
||||
if($logged_info->member_srl && $logged_info->is_admin == 'Y') {
|
||||
$file_config->allowed_filesize = 1024*1024*1024;
|
||||
$file_config->allowed_attach_size = 1024*1024*1024;
|
||||
$file_config->allowed_filetypes = '*.*';
|
||||
} else {
|
||||
$oModuleModel = &getModel('module');
|
||||
$file_config = $oModuleModel->getModuleConfig('file');
|
||||
$file_config->allowed_filesize = $file_config->allowed_filesize * 1024;
|
||||
$file_config->allowed_attach_size = $file_config->allowed_attach_size * 1024;
|
||||
}
|
||||
Context::set('file_config',$file_config);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue