From: Michael J. Rubinsky Date: Wed, 17 Feb 2010 22:00:01 +0000 (-0500) Subject: Catch Ansel_Exceptions here X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=45acc4bb76ede8a426e4acad65dcdd62e87b32e9;p=horde.git Catch Ansel_Exceptions here --- diff --git a/ansel/lib/Ansel.php b/ansel/lib/Ansel.php index 062d1f07c..c579fc638 100644 --- a/ansel/lib/Ansel.php +++ b/ansel/lib/Ansel.php @@ -440,8 +440,7 @@ class Ansel * * @return string The image path. */ - static public function getImageUrl($imageId, $view = 'screen', $full = false, - $style = null) + static public function getImageUrl($imageId, $view = 'screen', $full = false, $style = null) { global $conf, $ansel_storage; @@ -476,13 +475,13 @@ class Ansel // be going through img/*.php to auto-create it. try { $image = $ansel_storage->getImage($imageId); - } catch (Horde_Exception $e) { + } catch (Ansel_Exception $e) { Horde::logMessage($e->getMessage(), __FILE__, __LINE__, PEAR_LOG_ERR); return Ansel::getErrorImage($view); } try { $image->createView($view, $style, false); - } catch (Horde_Exception $e) { + } catch (Ansel_Exception $e) { return Ansel::getErrorImage($view); } $viewHash = $image->getViewHash($view, $style) . '/'