From: Michael J. Rubinsky Date: Sun, 2 Aug 2009 19:15:19 +0000 (-0400) Subject: Fix path for Effect X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=31fcc6463cf64f4b90908fa9cfbe3b2030573d50;p=horde.git Fix path for Effect --- diff --git a/framework/Image/lib/Horde/Image/Base.php b/framework/Image/lib/Horde/Image/Base.php index 08c84d803..92ea3e1be 100644 --- a/framework/Image/lib/Horde/Image/Base.php +++ b/framework/Image/lib/Horde/Image/Base.php @@ -355,11 +355,11 @@ class Horde_Image_Base */ public function getLoadedEffects() { - if (empty($this->_loadedEffects)) { + if (!count($this->_loadedEffects)) { $class = str_replace('Horde_Image_', '', get_class($this)); - + $this->_loadedEffects = array(); // First, load the driver-agnostic Effects. - $path = dirname(__FILE__) . '/Image/Effect/'; + $path = dirname(__FILE__) . '/Effect/'; if (is_dir($path)) { if ($handle = opendir($path)) { while (($file = readdir($handle)) !== false) {