remove commented out code, make note of this change.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 16 Sep 2010 22:18:50 +0000 (18:18 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 16 Sep 2010 22:18:50 +0000 (18:18 -0400)
ansel/lib/Storage.php

index 805302e..8b428c2 100644 (file)
@@ -94,7 +94,8 @@ class Ansel_Storage
         $attributes['default_type'] = isset($attributes['default_type']) ? $attributes['default_type'] : 'auto';
         $attributes['default'] = isset($attributes['default']) ? (int)$attributes['default'] : 0;
         $attributes['default_prettythumb'] = isset($attributes['default_prettythumb']) ? $attributes['default_prettythumb'] : '';
-        $attributes['style'] = isset($attributes['style']) ? $attributes['style'] : '';//$GLOBALS['prefs']->getValue('default_gallerystyle');
+        // No value for style now means to use the 'default_ansel' style as defined in styles.php
+        $attributes['style'] = isset($attributes['style']) ? $attributes['style'] : '';
         $attributes['date_created'] = time();
         $attributes['last_modified'] = $attributes['date_created'];
         $attributes['images'] = isset($attributes['images']) ? (int)$attributes['images'] : 0;