mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Use RX_WINDOWS constant in core and file module
This commit is contained in:
parent
76c68c63e0
commit
4ac0a6bf66
4 changed files with 7 additions and 8 deletions
|
|
@ -77,7 +77,7 @@ class fileAdminController extends file
|
|||
$config->image_remove_exif_data = Context::get('image_remove_exif_data') === 'Y' ? true : false;
|
||||
$config->video_thumbnail = Context::get('video_thumbnail') === 'Y' ? true : false;
|
||||
$config->video_mp4_gif_time = intval(Context::get('video_mp4_gif_time'));
|
||||
if(strtoupper(substr(\PHP_OS, 0, 3)) === 'WIN')
|
||||
if (RX_WINDOWS)
|
||||
{
|
||||
$config->ffmpeg_command = escape(Context::get('ffmpeg_command')) ?: 'C:\Program Files\ffmpeg\bin\ffmpeg.exe';
|
||||
$config->ffprobe_command = escape(Context::get('ffprobe_command')) ?: 'C:\Program Files\ffmpeg\bin\ffprobe.exe';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue