<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -278,7 +278,10 @@ class graphics_Core {
       $toolkits-&gt;graphicsmagick-&gt;installed = false;
       $toolkits-&gt;graphicsmagick-&gt;error = t(&quot;GraphicsMagick requires the &lt;b&gt;exec&lt;/b&gt; function&quot;);
     } else {
-      putenv(&quot;PATH=&quot; . getenv(&quot;PATH&quot;) . &quot;:/usr/local/bin:/opt/local/bin:/opt/bin&quot;);
+      $graphics_path = module::get_var(&quot;gallery&quot;, &quot;graphics_toolkit_path&quot;, null);
+
+      putenv(&quot;PATH=&quot; . getenv(&quot;PATH&quot;) . (empty($graphics_path) ? &quot;&quot; : &quot;:$graphics_path&quot;) .
+             &quot;:/usr/local/bin:/opt/local/bin:/opt/bin&quot;);
 
       // @todo: consider refactoring the two segments below into a loop since they are so
       // similar.</diff>
      <filename>modules/gallery/helpers/graphics.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>59b5a0549635aa5c8320707cec75612746debdd0</id>
    </parent>
  </parents>
  <author>
    <name>Tim Almdal</name>
    <login>talmdal</login>
    <email>tnalmdal@shaw.ca</email>
  </author>
  <url>http://github.com/gallery/gallery3/commit/294215258a30bb0e99701655ce2b69271446a867</url>
  <id>294215258a30bb0e99701655ce2b69271446a867</id>
  <committed-date>2009-10-30T10:31:47-07:00</committed-date>
  <authored-date>2009-10-30T10:31:47-07:00</authored-date>
  <message>Include the graphics_toolkit_path from the advanced settings in the path when searching for the graphics toolkits directories. Fixes ticket #639</message>
  <tree>130307edfc7a43d312d098c2cbbc98c80e976f8f</tree>
  <committer>
    <name>Tim Almdal</name>
    <login>talmdal</login>
    <email>tnalmdal@shaw.ca</email>
  </committer>
</commit>
