mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Fix #2396 display warning if exec() function is disabled
This commit is contained in:
parent
a72b4081b6
commit
311a35c955
4 changed files with 6 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue