From: Michael J. Rubinsky Date: Tue, 31 Aug 2010 22:25:23 +0000 (-0400) Subject: Make sure url is a string, not a Horde_Url object when returned via the API X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f00d980af73a1c30b1ea02ecbba6d28ba1f98b80;p=horde.git Make sure url is a string, not a Horde_Url object when returned via the API --- 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; }