From c708f1c4ec201ee4c91a27c1891c3c6d44020128 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 23 Sep 2010 11:54:45 -0400 Subject: [PATCH] This won't be an object since it comes from the API, get the style object from the name. --- ansel/lib/View/GalleryRenderer/Base.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ansel/lib/View/GalleryRenderer/Base.php b/ansel/lib/View/GalleryRenderer/Base.php index 564f2b8a8..921da7801 100644 --- a/ansel/lib/View/GalleryRenderer/Base.php +++ b/ansel/lib/View/GalleryRenderer/Base.php @@ -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(); } -- 2.11.0