aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-02 15:08:11 -0800
committerfriendica <info@friendica.com>2013-02-02 15:08:11 -0800
commit3eacd7aab37421c40a5647aee9acdbc58615ab4e (patch)
tree7c26e4eefe8b15827b6fb80c7ac6e3cad246cd06 /include
parent17cf6c41dbe0d18ca73ba1f929128162033c7c90 (diff)
downloadvolse-hubzilla-3eacd7aab37421c40a5647aee9acdbc58615ab4e.tar.gz
volse-hubzilla-3eacd7aab37421c40a5647aee9acdbc58615ab4e.tar.bz2
volse-hubzilla-3eacd7aab37421c40a5647aee9acdbc58615ab4e.zip
debugging the photo api
Diffstat (limited to 'include')
-rw-r--r--include/photos.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/photos.php b/include/photos.php
index 8e07c612f..c6e54517a 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -207,8 +207,8 @@ function photo_upload($channel, $observer, $args) {
$arr['deny_gid'] = $str_group_deny;
- $arr['body'] = '[url=' . $a->get_baseurl() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']'
- . '[img]' . $a->get_baseurl() . "/photo/{$photo_hash}-{$smallest}.".$ph->getExt() . '[/img]'
+ $arr['body'] = '[url=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo_hash . ']'
+ . '[img]' . z_root() . "/photo/{$photo_hash}-{$smallest}.".$ph->getExt() . '[/img]'
. '[/url]';
$item_id = item_store($arr);
@@ -347,8 +347,8 @@ function photos_create_item($channel, $creator_hash, $photo, $visible = false) {
$arr['deny_cid'] = $photo['deny_cid'];
$arr['deny_gid'] = $photo['deny_gid'];
- $arr['body'] = '[url=' . $a->get_baseurl() . '/photos/' . $channel['channel_address'] . '/image/' . $photo['resource_id'] . ']'
- . '[img]' . $a->get_baseurl() . '/photo/' . $photo['resource_id'] . '-' . $photo['scale'] . '[/img]'
+ $arr['body'] = '[url=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $photo['resource_id'] . ']'
+ . '[img]' . z_root() . '/photo/' . $photo['resource_id'] . '-' . $photo['scale'] . '[/img]'
. '[/url]';
$item_id = item_store($arr);