From 54646583bc9ce35b5f27f1b528c5e399bcd23270 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 7 Feb 2009 21:05:04 +0000 Subject: Remove the try/catch as it was being fixed twice --- core/helpers/graphics.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'core/helpers') diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php index 4c8f3bb1..37143f74 100644 --- a/core/helpers/graphics.php +++ b/core/helpers/graphics.php @@ -236,11 +236,7 @@ class graphics_Core { * GraphicsMagick we return the path to the directory containing the appropriate binaries. */ static function detect_toolkits() { - try { - $gd = function_exists("gd_info") ? gd_info() : array(); - } catch (Exception $e) { - $gd = array(); - } + $gd = function_exists("gd_info") ? gd_info() : array(); return array("gd" => $gd, "imagemagick" => dirname(exec("which convert")), "graphicsmagick" => dirname(exec("which gm"))); -- cgit v1.2.3