Change method calls to static in many core modules

This commit is contained in:
Kijin Sung 2020-05-24 20:43:52 +09:00
parent 89ec44152e
commit c90d529c74
15 changed files with 361 additions and 605 deletions

View file

@ -35,14 +35,12 @@ class fileView extends file
}
// Get file configurations of the module
$oFileModel = getModel('file');
$config = $oFileModel->getFileConfig($current_module_srl);
$config = FileModel::getFileConfig($current_module_srl);
Context::set('config', $config);
Context::set('is_ffmpeg', function_exists('exec') && Rhymix\Framework\Storage::isExecutable($config->ffmpeg_command) && Rhymix\Framework\Storage::isExecutable($config->ffprobe_command));
// Get a permission for group setting
$oMemberModel = getModel('member');
$group_list = $oMemberModel->getGroups();
$group_list = MemberModel::getGroups();
Context::set('group_list', $group_list);
// Set a template file