mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-25 01:04:25 -04:00
Add /opt/bin as a binary path.
This commit is contained in:
@@ -331,7 +331,7 @@ class graphics_Core {
|
||||
if (!isset($gd["GD Version"])) {
|
||||
$gd["GD Version"] = false;
|
||||
}
|
||||
putenv("PATH=" . getenv("PATH") . ":/usr/local/bin:/opt/local/bin");
|
||||
putenv("PATH=" . getenv("PATH") . ":/usr/local/bin:/opt/local/bin:/opt/bin");
|
||||
return array("gd" => $gd,
|
||||
"imagemagick" => $exec ? dirname(exec("which convert")) : false,
|
||||
"graphicsmagick" => $exec ? dirname(exec("which gm")) : false);
|
||||
|
||||
@@ -145,7 +145,7 @@ 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");
|
||||
putenv("PATH=" . getenv("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