diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-20 16:42:49 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-20 16:42:49 +0000 |
commit | 3dc55716291dfa2bc70a4b23bcc8e24c8b6abe25 (patch) | |
tree | 34d58a678db7e893d70dededbb3dbbbfb525c366 /core | |
parent | 2e204cac78c067a45013d79dc8450ff49d52c31a (diff) |
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.
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; } } |