#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:
haneul 2010-04-26 14:26:25 +00:00
parent 1788b5083b
commit bc414542bf
10 changed files with 11 additions and 2 deletions

View file

@ -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")) {

View file

@ -52,4 +52,5 @@
'nick_name' => 'Nickname',
'ipaddress' => 'IP Address',
);
$lang->msg_not_allowed_outlink = 'It is not allowed to download files not from this site.';
?>

View file

@ -49,4 +49,5 @@
'regdate' => 'La fecha registrada',
'ipaddress' => 'Dirección IP',
);
$lang->msg_not_allowed_outlink = 'It is not allowed to download files not from this site.';
?>

View file

@ -49,4 +49,5 @@
'regdate' => 'Enrgistre',
'ipaddress' => 'Adresse IP',
);
$lang->msg_not_allowed_outlink = 'It is not allowed to download files not from this site.';
?>

View file

@ -51,4 +51,5 @@
'regdate' => '登録日',
'ipaddress' => 'IPアドレス',
);
$lang->msg_not_allowed_outlink = 'It is not allowed to download files not from this site.';
?>

View file

@ -51,4 +51,5 @@
'regdate' => '등록일',
'ipaddress' => 'IP 주소',
);
$lang->msg_not_allowed_outlink = '외부링크에서 다운로드 할 수 없습니다.';
?>

View file

@ -51,4 +51,5 @@
'regdate' => 'Дата регистрации',
'ipaddress' => 'IP-Адрес',
);
$lang->msg_not_allowed_outlink = 'It is not allowed to download files not from this site.';
?>

View file

@ -54,4 +54,5 @@
'nick_name' => 'Nickname',
'ipaddress' => 'IP',
);
$lang->msg_not_allowed_outlink = 'It is not allowed to download files not from this site.';
?>

View file

@ -49,4 +49,5 @@
'regdate' => '登录日期',
'ipaddress' => 'IP地址',
);
$lang->msg_not_allowed_outlink = 'It is not allowed to download files not from this site.';
?>

View file

@ -51,4 +51,5 @@
'regdate' => '登錄日期',
'ipaddress' => 'IP位址',
);
$lang->msg_not_allowed_outlink = 'It is not allowed to download files not from this site.';
?>