Skip to content

Commit

Permalink
Need to pass the current gallery_id to this View.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Hagenbuch authored and mrubinsk committed Sep 16, 2015
1 parent a6a040c commit 773bf24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansel/lib/View/GalleryProperties.php
Expand Up @@ -455,7 +455,7 @@ protected function _galleryViewStyles()
$dir = ANSEL_BASE . '/lib/View/GalleryRenderer';
$files = scandir($dir);
$views = array();
$galleryView = new Ansel_View_Gallery();
$galleryView = new Ansel_View_Gallery(array('gallery_id' => $this->_params['gallery']));
foreach ($files as $file) {
if ($file != 'Base.php' && strpos($file, '.') !== 0) {
$class = 'Ansel_View_GalleryRenderer_' . substr($file, 0, -4);
Expand Down

0 comments on commit 773bf24

Please sign in to comment.