From 16e2b3719e074081a4852e5db0d24dce8b8bfdbb Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 8 Aug 2010 11:54:56 -0400 Subject: [PATCH] simplify Add to bookmark link still not working, think it's an encoding issue somewhere in the call stack --- ansel/lib/Widget/Actions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansel/lib/Widget/Actions.php b/ansel/lib/Widget/Actions.php index d49b55181..e19218569 100644 --- a/ansel/lib/Widget/Actions.php +++ b/ansel/lib/Widget/Actions.php @@ -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 .= '
  • ' . $url->link(array('class' => 'widget')) . Horde::img(Horde_Themes::img('trean.png', 'trean')) . ' ' . _("Add to bookmarks") . '
  • '; } catch (Horde_Exception $e) {} } -- 2.11.0