Separate upload config screen from download config screen

This commit is contained in:
Kijin Sung 2019-08-01 00:20:40 +09:00
parent 31b0bb4158
commit 690803f3fc
8 changed files with 105 additions and 42 deletions

View file

@ -210,7 +210,7 @@ class fileAdminView extends file
}
/**
* Set attachment information (for administrator)
* Upload config screen
*
* @return Object
*/
@ -224,6 +224,22 @@ class fileAdminView extends file
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('adminConfig');
}
/**
* Download config screen
*
* @return Object
*/
function dispFileAdminDownloadConfig()
{
$oFileModel = getModel('file');
$config = $oFileModel->getFileConfig();
Context::set('config',$config);
// Set a template file
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('download_config');
}
}
/* End of file file.admin.view.php */
/* Location: ./modules/file/file.admin.view.php */