From 3dc55716291dfa2bc70a4b23bcc8e24c8b6abe25 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 20 May 2009 16:42:49 +0000 Subject: Always set the graphics_toolkit_path, even if we're on GD. That'll force it to show up in Admin > Settings > Advanced so that people can easily forcefully change over to ImageMagick or GraphicsMagick. --- core/helpers/graphics.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core') 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; } } -- cgit v1.2.3