Remove unnecessary arguments and deprecated function calls

- Originally committed on April 3, 2022
This commit is contained in:
Kijin Sung 2022-12-26 16:24:27 +09:00
parent 17279c264b
commit b00f8b63d1
4 changed files with 13 additions and 9 deletions

View file

@ -158,7 +158,7 @@ class fileController extends file
}
else
{
$this->add('download_url', FileModel::getDownloadUrl($output->get('file_srl'), $output->get('sid'), $module_srl, $output->get('source_filename')));
$this->add('download_url', FileModel::getDownloadUrl($output->get('file_srl'), $output->get('sid'), 0, $output->get('source_filename')));
}
}
@ -305,7 +305,7 @@ class fileController extends file
}
// Not allow the file outlink
$file_module_config = FileModel::getFileModuleConfig($file_obj->module_srl);
$file_module_config = FileModel::getFileConfig($file_obj->module_srl);
if($file_module_config->allow_outlink == 'N' && $_SERVER["HTTP_REFERER"])
{
// Handles extension to allow outlink