mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 14:55:18 -04:00
Include the gallery_toolkit_path in the path when determining the location of ffmpeg.
This commit is contained in:
@@ -190,7 +190,10 @@ class movie_Core {
|
||||
|
||||
static function find_ffmpeg() {
|
||||
if (!$ffmpeg_path = module::get_var("gallery", "ffmpeg_path")) {
|
||||
putenv("PATH=" . getenv("PATH") . ":/usr/local/bin:/opt/local/bin:/opt/bin");
|
||||
$graphics_path = module::get_var("gallery", "graphics_toolkit_path", null);
|
||||
|
||||
putenv("PATH=" . getenv("PATH") . (empty($graphics_path) ? "" : ":$graphics_path") .
|
||||
":/usr/local/bin:/opt/local/bin:/opt/bin");
|
||||
if (function_exists("exec")) {
|
||||
$ffmpeg_path = exec("which ffmpeg");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user