is_command() 대체

This commit is contained in:
conory 2019-10-09 23:28:23 +09:00
parent 9a78f0f0a0
commit 77122a32b2
6 changed files with 18 additions and 25 deletions

View file

@ -219,7 +219,7 @@ class fileAdminView extends file
$oFileModel = getModel('file');
$config = $oFileModel->getFileConfig();
Context::set('config', $config);
Context::set('is_ffmpeg', is_command($config->ffmpeg_command) && is_command($config->ffprobe_command));
Context::set('is_ffmpeg', function_exists('exec') && Rhymix\Framework\Storage::isExecutable($config->ffmpeg_command) && Rhymix\Framework\Storage::isExecutable($config->ffprobe_command));
// Set a template file
$this->setTemplatePath($this->module_path.'tpl');