Fix #2396 display warning if exec() function is disabled

This commit is contained in:
Kijin Sung 2024-08-21 19:54:59 +09:00
parent a72b4081b6
commit 311a35c955
4 changed files with 6 additions and 0 deletions

View file

@ -224,6 +224,7 @@ class FileAdminView extends File
Context::set('config', $config);
Context::set('is_ffmpeg', function_exists('exec') && !empty($config->ffmpeg_command) && Rhymix\Framework\Storage::isExecutable($config->ffmpeg_command) && !empty($config->ffprobe_command) && Rhymix\Framework\Storage::isExecutable($config->ffprobe_command));
Context::set('is_magick', function_exists('exec') && !empty($config->magick_command) && Rhymix\Framework\Storage::isExecutable($config->magick_command));
Context::set('is_exec_available', function_exists('exec'));
// Set a template file
$this->setTemplatePath($this->module_path.'tpl');