aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-03 23:08:04 +0100
committerMario Vavti <mario@mariovavti.com>2017-11-03 23:08:04 +0100
commita899ce1c22386b9ff882048cba35d46f560ee654 (patch)
tree892c93a0a3e434b6e8ff8c04d3d7107cf1e12750 /include/photos.php
parent0ce7358f0f00cb000562dc34be13459eb5779c18 (diff)
parentfae9c236371ba70b2ac7624d6020c76a77c1944d (diff)
downloadvolse-hubzilla-a899ce1c22386b9ff882048cba35d46f560ee654.tar.gz
volse-hubzilla-a899ce1c22386b9ff882048cba35d46f560ee654.tar.bz2
volse-hubzilla-a899ce1c22386b9ff882048cba35d46f560ee654.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/photos.php b/include/photos.php
index 5de68f162..503a725cd 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -75,6 +75,9 @@ function photo_upload($channel, $observer, $args) {
$imagedata = @file_get_contents($tmp_name);
@unlink($tmp_name);
}
+ else {
+ $imagedata = @file_get_contents($args['os_syspath']);
+ }
}
else {
$imagedata = @file_get_contents($args['os_syspath']);