[ansel] Fix getting url for images from the API
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 10 Mar 2010 15:44:44 +0000 (10:44 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 10 Mar 2010 16:36:48 +0000 (11:36 -0500)
ansel/lib/Api.php

index 73629bc..552c1ea 100644 (file)
@@ -601,7 +601,7 @@ class Ansel_Api extends Horde_Registry_Api
             $GLOBALS['ansel_storage'] = new Ansel_Storage($app);
         }
 
-        return Ansel::getImageUrl($image_id, $view, $full, $style);
+        return (string)Ansel::getImageUrl($image_id, $view, $full, $style);
     }
 
     /**