diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/helpers/graphics.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php index b4729532..b82b6ba8 100644 --- a/core/helpers/graphics.php +++ b/core/helpers/graphics.php @@ -305,9 +305,7 @@ class graphics_Core { foreach (array("imagemagick", "graphicsmagick", "gd") as $tk) { if ($toolkits[$tk]) { module::set_var("core", "graphics_toolkit", $tk); - if ($tk != "gd") { - module::set_var("core", "graphics_toolkit_path", $toolkits[$tk]); - } + module::set_var("core", "graphics_toolkit_path", $tk == "gd" ? "" : $toolkits[$tk]); break; } } |