mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#18754919 : specify error message for file download - thanks to 파이델
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7396 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1788b5083b
commit
bc414542bf
10 changed files with 11 additions and 2 deletions
|
|
@ -174,7 +174,7 @@
|
|||
}
|
||||
else $file_module_config->allow_outlink = 'Y';
|
||||
}
|
||||
if($file_module_config->allow_outlink != 'Y') return $this->stop('msg_not_permitted_download');
|
||||
if($file_module_config->allow_outlink != 'Y') return $this->stop('msg_not_allowed_outlink');
|
||||
}
|
||||
|
||||
// 파일 다운로드 권한이 있는지 확인
|
||||
|
|
@ -206,7 +206,7 @@
|
|||
|
||||
// trigger 호출 (before)
|
||||
$output = ModuleHandler::triggerCall('file.downloadFile', 'before', $file_obj);
|
||||
if(!$output->toBool()) return $this->stop('msg_not_permitted_download');
|
||||
if(!$output->toBool()) return $this->stop(($output->message)?$output->message:'msg_not_permitted_download');
|
||||
|
||||
// 파일 출력
|
||||
if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue