summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-07 21:05:04 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-07 21:05:04 +0000
commit54646583bc9ce35b5f27f1b528c5e399bcd23270 (patch)
treeebc40fb67d2d8480dd9ab677f278c463107475b6
parentce826c3048470098f6c58f81ea5fd3ecee4b4877 (diff)
Remove the try/catch as it was being fixed twice
-rw-r--r--core/helpers/graphics.php6
1 files changed, 1 insertions, 5 deletions
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")));