aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-15 18:30:10 -0800
committerfriendica <info@friendica.com>2013-12-15 18:30:10 -0800
commit817d1461236acf9067ab7ff79d116832f18c282b (patch)
tree19f9415753c24d9f2f27c66c5797c440620d2746 /boot.php
parenta6987134e5ca957a3ea923cf678a3c4b6df69e41 (diff)
downloadvolse-hubzilla-817d1461236acf9067ab7ff79d116832f18c282b.tar.gz
volse-hubzilla-817d1461236acf9067ab7ff79d116832f18c282b.tar.bz2
volse-hubzilla-817d1461236acf9067ab7ff79d116832f18c282b.zip
bloody hell... php version incompatibility with openssl - openssl no longer accepts a string as an algorithm. Earlier versions didn't recognise sha256. So we'll look to see if the algorithm constant for sha256 is defined and if so we'll use that instead of the string.
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 0cde9419d..9c0fb8919 100755
--- a/boot.php
+++ b/boot.php
@@ -1392,7 +1392,14 @@ function fix_system_urls($oldurl,$newurl) {
dbesc($rr['xchan_hash']),
dbesc($oldurl)
);
-
+
+
+ $z = q("update profile set photo = '%s', thumb = '%s' where uid = %d",
+ dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_l'])),
+ dbesc(str_replace($oldurl,$newurl,$rr['xchan_photo_m'])),
+ intval($rr['channel_id'])
+ );
+
proc_run('php', 'include/notifier.php', 'refresh_all', $rr['channel_id']);
}