r5894 refix. / When content widget get Feed, it would send user-agent info as content widget later.(이렇게 해야 하는것 아닌가요?...)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5905 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-03-18 09:24:10 +00:00
parent 1de4043e63
commit 032de69db3
3 changed files with 14 additions and 6 deletions

View file

@ -294,7 +294,7 @@
$allowed_attach_size = $config->allowed_attach_size * 1024 * 1024;
// 한 파일당 허용 용량 초과시 오류 출력
if($allowed_filesize > filesize($file_info['tmp_name'])) return new Object(-1, 'msg_exceeds_limit_size');
if($allowed_filesize < filesize($file_info['tmp_name'])) return new Object(-1, 'msg_exceeds_limit_size');
// 해당 문서에 첨부된 모든 파일의 용량을 가져옴 (DB에서 가져옴)

View file

@ -80,11 +80,6 @@
* @brief 파일 설정 정보를 구함
**/
function getFileConfig($module_srl = null) {
// module_srl이 없으면 현재 모듈
if(!$module_srl) {
$current_module_info = Context::get('current_module_info');
$module_srl = $current_module_info->module_srl;
}
// 설정 정보를 받아옴 (module model 객체를 이용)
$oModuleModel = &getModel('module');
@ -171,6 +166,11 @@
$file_config->allowed_filetypes = '*.*';
} else {
$module_srl = Context::get('module_srl');
// module_srl이 없으면 현재 모듈
if(!$module_srl) {
$current_module_info = Context::get('current_module_info');
$module_srl = $current_module_info->module_srl;
}
$file_config = $this->getFileConfig($module_srl);
}
return $file_config;