From: Michael J. Rubinsky Date: Thu, 23 Sep 2010 15:54:45 +0000 (-0400) Subject: This won't be an object since it comes from the API, get the style object from the... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c708f1c4ec201ee4c91a27c1891c3c6d44020128;p=horde.git This won't be an object since it comes from the API, get the style object from the name. --- 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(); }