mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
is_command() 대체
This commit is contained in:
parent
9a78f0f0a0
commit
77122a32b2
6 changed files with 18 additions and 25 deletions
|
|
@ -1102,7 +1102,7 @@ class fileController extends file
|
|||
$is_animated = Rhymix\Framework\Image::isAnimatedGIF($file_info['tmp_name']);
|
||||
|
||||
// Adjust image type
|
||||
if ($config->image_autoconv['gif2mp4'] && $is_animated && is_command($config->ffmpeg_command))
|
||||
if ($config->image_autoconv['gif2mp4'] && $is_animated && function_exists('exec') && Rhymix\Framework\Storage::isExecutable($config->ffmpeg_command))
|
||||
{
|
||||
$adjusted['type'] = 'mp4';
|
||||
}
|
||||
|
|
@ -1267,7 +1267,7 @@ class fileController extends file
|
|||
*/
|
||||
public function adjustUploadedVideo($file_info, $config)
|
||||
{
|
||||
if (!is_command($config->ffmpeg_command) || !is_command($config->ffprobe_command))
|
||||
if (!function_exists('exec') || !Rhymix\Framework\Storage::isExecutable($config->ffmpeg_command) || !Rhymix\Framework\Storage::isExecutable($config->ffprobe_command))
|
||||
{
|
||||
return $file_info;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue