summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-31 16:23:08 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-31 16:23:08 -0700
commite72022f062ba22f9f11a9ce063c49dfd790d5d40 (patch)
tree1ca06da889a8829ce569ca7e3624526b171f2e6d /modules/gallery
parent1c428df9e090b8e7e9dfa3ec5d924b8169190b42 (diff)
Include the gallery_toolkit_path in the path when determining the location of ffmpeg.
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/helpers/movie.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gallery/helpers/movie.php b/modules/gallery/helpers/movie.php
index 6dac0803..e84e8ea6 100644
--- a/modules/gallery/helpers/movie.php
+++ b/modules/gallery/helpers/movie.php
@@ -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");
}