simplify
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 8 Aug 2010 15:54:56 +0000 (11:54 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 8 Aug 2010 16:00:53 +0000 (12:00 -0400)
Add to bookmark link still not working, think it's an encoding issue somewhere
in the call stack

ansel/lib/Widget/Actions.php

index d49b551..e192185 100644 (file)
@@ -121,8 +121,7 @@ class Ansel_Widget_Actions extends Ansel_Widget_Base
                 'title' => $this->_view->gallery->get('name'));
 
             try {
-                $url = $registry->bookmarks->getAddUrl($api_params);
-                $url = new Horde_Url($url);
+                $url = new Horde_Url($registry->bookmarks->getAddUrl($api_params));
                 $html .= '<li>' . $url->link(array('class' => 'widget')) . Horde::img(Horde_Themes::img('trean.png', 'trean')) . ' ' . _("Add to bookmarks") . '</a></li>';
             } catch (Horde_Exception $e) {}
         }