Skip to content

Commit

Permalink
Fix creating new galleries.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Hagenbuch committed Dec 10, 2015
1 parent 2e6b529 commit 738f64f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ansel/lib/View/GalleryProperties.php
Expand Up @@ -455,11 +455,10 @@ protected function _galleryViewStyles()
$dir = ANSEL_BASE . '/lib/View/GalleryRenderer';
$files = scandir($dir);
$views = array();
$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);
$view = new $class($galleryView);
$view = new $class(null);
$views[substr($file, 0, -4)] = $view->title;
}
}
Expand Down

0 comments on commit 738f64f

Please sign in to comment.