This won't be an object since it comes from the API, get the style object from the...
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 23 Sep 2010 15:54:45 +0000 (11:54 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 23 Sep 2010 15:54:45 +0000 (11:54 -0400)
ansel/lib/View/GalleryRenderer/Base.php

index 564f2b8..921da78 100644 (file)
@@ -145,9 +145,10 @@ abstract class Ansel_View_GalleryRenderer_Base
         /* Fetch the children */
         $this->fetchChildren($this->view->force_grouping);
 
-        /* Do we have an explicit style set? If not, use the gallery's */
+        // Do we have an explicit style set from the API?
+        //  If not, use the gallery's
         if (!empty($this->view->style)) {
-            $this->style = $this->view->style;
+            $this->style = Ansel::getStyleDefinition($this->view->style);
         } else {
             $this->style = $this->view->gallery->getStyle();
         }