'photo_stack' no longer exists, just check the gallery's features.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 30 Dec 2010 19:38:41 +0000 (14:38 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 30 Dec 2010 19:42:09 +0000 (14:42 -0500)
ansel/lib/Widget/Actions.php

index 88ab520..cfdd7a0 100644 (file)
@@ -178,7 +178,7 @@ class Ansel_Widget_Actions extends Ansel_Widget_Base
 
             } /* end if ($count) {} */
 
-            if (Ansel::isAvailable('photo_stack') && $this->_view->gallery->hasFeature('stacks')) {
+            if ($this->_view->gallery->hasFeature('stacks')) {
                 $html .= '<li>' . $galleryurl->copy()->add(array('actionID' => 'generateDefault', 'url' => $selfurl))->link(array('class' => 'widget')) . Horde::img('reload.png') . ' ' . _("Reset default photo") . '</a></li>';
             }
         }