aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-01 21:03:55 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-01 21:03:55 -0700
commitf72a3113f5a42808e41b8eef19cc7ea6c6b199b8 (patch)
tree209b7ed9e75c834c6c09740d77fd9d8b11908419
parent3c29b46c4266a62bbd0c61f8663911434fbb7989 (diff)
downloadvolse-hubzilla-f72a3113f5a42808e41b8eef19cc7ea6c6b199b8.tar.gz
volse-hubzilla-f72a3113f5a42808e41b8eef19cc7ea6c6b199b8.tar.bz2
volse-hubzilla-f72a3113f5a42808e41b8eef19cc7ea6c6b199b8.zip
add the baseurl so we can easily relocate objects
-rw-r--r--include/identity.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/identity.php b/include/identity.php
index 561a69cd5..d9a0d1818 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -560,9 +560,10 @@ function identity_basic_export($channel_id, $items = false) {
$datestamp = datetime_convert();
- $r = q("select obj.*, term.term as obj_term, term.url as obj_url, term.imgurl as obj_imgurl, '%s' as obj_created, '%s' as obj_edited from obj left join term on obj_obj = term.term_hash where obj_channel = %d",
+ $r = q("select obj.*, term.term as obj_term, term.url as obj_url, term.imgurl as obj_imgurl, '%s' as obj_created, '%s' as obj_edited, '%s' as obj_baseurl from obj left join term on obj_obj = term.term_hash where obj_channel = %d",
dbesc($datestamp),
dbesc($datestamp),
+ dbesc(z_root()),
intval($channel_id)
);