summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/graphics.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-12 15:58:34 +0800
committer <unostar@danalan.info>2009-06-12 21:21:00 +0800
commit35e5a7d69b04bef171ed30b2f31aad32b83b19f0 (patch)
tree86565196574ea3008ddbc8dedd383a53cffe3fab /modules/gallery/helpers/graphics.php
parent9e348c51c1c61aacd53628b099ca6c344926835b (diff)
Add /usr/local/bin to PATH before trying to detect binaries.
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules/gallery/helpers/graphics.php')
-rw-r--r--modules/gallery/helpers/graphics.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/graphics.php b/modules/gallery/helpers/graphics.php
index 25eb0891..feebfb34 100644
--- a/modules/gallery/helpers/graphics.php
+++ b/modules/gallery/helpers/graphics.php
@@ -326,6 +326,7 @@ class graphics_Core {
if (!isset($gd["GD Version"])) {
$gd["GD Version"] = false;
}
+ putenv("PATH=" . getenv("PATH") . ":/usr/local/bin");
return array("gd" => $gd,
"imagemagick" => $exec ? dirname(exec("which convert")) : false,
"graphicsmagick" => $exec ? dirname(exec("which gm")) : false);