Don't show widgets when viewing via the api, remove deprecated function call
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 11 Nov 2009 20:13:26 +0000 (15:13 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 11 Nov 2009 20:13:26 +0000 (15:13 -0500)
ansel/lib/View/GalleryRenderer/Base.php
ansel/lib/View/GalleryRenderer/GalleryLightbox.php

index ee55e2c..3a27993 100644 (file)
@@ -144,7 +144,7 @@ abstract class Ansel_View_GalleryRenderer_Base
         }
 
         /* Include any widgets */
-        if (!empty($this->style['widgets'])) {
+        if (!empty($this->style['widgets']) && !$this->view->api) {
             /* Special case widgets - these are built in */
             if (array_key_exists('Actions', $this->style['widgets'])) {
                 /* Don't show action widget if no actions */
index 7b75d7b..0cd2dd8 100644 (file)
@@ -135,7 +135,6 @@ class Ansel_View_GalleryRenderer_GalleryLightbox extends Ansel_View_GalleryRende
         if (!empty($this->view->api)) {
             Ansel::attachStylesheet('lightbox.css', true);
             $includes = new Horde_Script_Files();
-            $includes->disableAutoloadHordeJS();
             $includes->_add('accesskeys.js', 'horde', true, true);
             $includes->_add('effects.js', 'horde', true, true);
             $includes->_add('lightbox.js', 'ansel', true, true);