From: Michael J. Rubinsky Date: Fri, 19 Feb 2010 17:42:28 +0000 (-0500) Subject: Fix case, log errors X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6b3f11381ab010b38dfa9f80178a5ae712d66bf4;p=horde.git Fix case, log errors --- diff --git a/ansel/config/styles.php.dist b/ansel/config/styles.php.dist index e3ee067de..d70307444 100644 --- a/ansel/config/styles.php.dist +++ b/ansel/config/styles.php.dist @@ -68,7 +68,7 @@ $styles['ansel_prettythumbs'] = array( 'thumbstyle' => 'PrettyThumb', 'requires_png' => true, // This really only looks good with ImageMagick, not GD. - 'default_galleryimage_type' => 'roundedstack', + 'default_galleryimage_type' => 'RoundedStack', 'background' => 'none', 'widgets' => $widgets, ); @@ -76,7 +76,7 @@ $styles['ansel_prettythumbs'] = array( $styles['ansel_blackonwhite'] = array( 'name' => 'ansel_blackonwhite', 'title' => _("Pretty Thumbnails (White Background)"), - 'default_galleryimage_type' => 'roundedstack', + 'default_galleryimage_type' => 'RoundedStack', 'thumbstyle' => 'PrettyThumb', 'background' => 'white', 'widgets' => $widgets, @@ -87,7 +87,7 @@ $styles['ansel_sharpshadowed'] = array( 'title' => _("Shadowed Thumbnails (White Background)"), 'thumbstyle' => 'ShadowSharpThumb', 'background' => 'white', - 'default_galleryimage_type' => 'plainstack', + 'default_galleryimage_type' => 'PlainStack', 'widgets' => $widgets ); @@ -97,7 +97,7 @@ $styles['ansel_polaroid'] = array( 'title' => _("Polaroid Style Thumbnails (White Background)"), 'thumbstyle' => 'PolaroidThumb', 'background' => 'white', - 'default_galleryimage_type' => 'polaroidstack', + 'default_galleryimage_type' => 'PolaroidStack', 'widgets' => $widgets, ); @@ -146,7 +146,7 @@ $styles['ansel_lightbox_polaroid'] = array( 'thumbstyle' => 'PolaroidThumb', 'background' => 'none', 'requires_png' => true, - 'default_galleryimage_type' => 'polaroidstack', + 'default_galleryimage_type' => 'PolaroidStack', 'gallery_view' => 'GalleryLightbox', 'widgets' => $widgets, ); @@ -183,7 +183,7 @@ $styles['ansel_lightbox_simple_polaroid'] = array( 'thumbstyle' => 'PolaroidThumb', 'background' => 'none', 'requires_png' => true, - 'default_galleryimage_type' => 'polaroidstack', + 'default_galleryimage_type' => 'PolaroidStack', 'gallery_view' => 'GalleryLightbox', 'hide' => true, 'fallback' => 'ansel_simple' diff --git a/ansel/lib/ImageView.php b/ansel/lib/ImageView.php index b0d97b2a8..c470621da 100644 --- a/ansel/lib/ImageView.php +++ b/ansel/lib/ImageView.php @@ -168,7 +168,9 @@ class Ansel_ImageView $img->load('screen'); $images[] = $img->getHordeImage(); $cnt--; - } catch (Horde_Exception $e) {} + } catch (Exception $e) { + Horde::logMessage($e->getMessage(), __FILE__, __LINE__, PEAR_LOG_ERR); + } } for ($i = 0; $i < $cnt; $i++) { @@ -178,7 +180,9 @@ class Ansel_ImageView $aimg = array_shift($temp); $aimg->load('screen'); $images[] = $aimg->getHordeImage(); - } catch (Horde_Exception $e) {} + } catch (Exception $e) { + Horde::logMessage($e->getMessage(), __FILE__, __LINE__, PEAR_LOG_ERR); + } } // Reverse the array to ensure the requested default image