From f00d980af73a1c30b1ea02ecbba6d28ba1f98b80 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 31 Aug 2010 18:25:23 -0400 Subject: [PATCH] Make sure url is a string, not a Horde_Url object when returned via the API --- ansel/lib/Api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansel/lib/Api.php b/ansel/lib/Api.php index 7ff53416e..43aa79f02 100644 --- a/ansel/lib/Api.php +++ b/ansel/lib/Api.php @@ -670,8 +670,7 @@ class Ansel_Api extends Horde_Registry_Api */ public function listGalleries($params = array()) { - // If no app is given use Ansel's own gallery which is initialized in - // base.php + // If no app is given use Ansel's own gallery if (!empty($params['scope'])) { $GLOBALS['injector']->getInstance('Ansel_Config')->set('scope', $params['scope']); } @@ -808,6 +807,7 @@ class Ansel_Api extends Horde_Registry_Api if (!is_null($app) && $GLOBALS['conf']['vfs']['src'] != 'direct') { $imagelist[$id]['url']->add('app', $app); } + $imagelist[$id]['url'] = $imagelist[$id]['url']->toString(); } return $imagelist; } -- 2.11.0