aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-05 16:26:40 -0700
committerfriendica <info@friendica.com>2013-09-05 16:26:40 -0700
commit3b697957af902cbe28aecf70dcf0dfad328a6db1 (patch)
tree9da26153f5e5039c2e6279d77a529fa21d4787f7 /boot.php
parent7ecf1626371f9eb55d05c160f5748ecb0b1ba091 (diff)
downloadvolse-hubzilla-3b697957af902cbe28aecf70dcf0dfad328a6db1.tar.gz
volse-hubzilla-3b697957af902cbe28aecf70dcf0dfad328a6db1.tar.bz2
volse-hubzilla-3b697957af902cbe28aecf70dcf0dfad328a6db1.zip
update photo timestamp on site rename
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index de54ea986..9bf586caf 100755
--- a/boot.php
+++ b/boot.php
@@ -1343,7 +1343,7 @@ function fix_system_urls($oldurl,$newurl) {
// paths aren't going to work. You have to be at the (sub)domain root
// . (($parsed['path']) ? $parsed['path'] : '');
- $x = q("update xchan set xchan_addr = '%s', xchan_url = '%s', xchan_connurl = '%s', xchan_follow = '%s', xchan_connpage = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s' where xchan_hash = '%s' limit 1",
+ $x = q("update xchan set xchan_addr = '%s', xchan_url = '%s', xchan_connurl = '%s', xchan_follow = '%s', xchan_connpage = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_date = '%s' where xchan_hash = '%s' limit 1",
dbesc($channel . '@' . $rhs),
dbesc(str_replace($oldurl,$newurl,$rr['xchan_url'])),
dbesc(str_replace($oldurl,$newurl,$rr['xchan_connurl'])),
@@ -1352,6 +1352,7 @@ function fix_system_urls($oldurl,$newurl) {
dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_l'])),
dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_m'])),
dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_s'])),
+ dbesc(datetime_convert()),
dbesc($rr['xchan_hash'])
);