aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Photo.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-04-16 22:24:48 +0200
committerMax Kostikov <max@kostikov.co>2019-04-16 22:24:48 +0200
commitc4909703243297e49cbb1e37cc16e88b499835a4 (patch)
tree39d4f4fff8a397bc5d7eb75c3db0b0677ff041f2 /Zotlabs/Module/Photo.php
parent5ba7e5d7d7e32db0803b5bd0f5845d2a1a556f66 (diff)
downloadvolse-hubzilla-c4909703243297e49cbb1e37cc16e88b499835a4.tar.gz
volse-hubzilla-c4909703243297e49cbb1e37cc16e88b499835a4.tar.bz2
volse-hubzilla-c4909703243297e49cbb1e37cc16e88b499835a4.zip
Fix file path with filesystem storage
Diffstat (limited to 'Zotlabs/Module/Photo.php')
-rw-r--r--Zotlabs/Module/Photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Photo.php b/Zotlabs/Module/Photo.php
index 6912322aa..37ae03460 100644
--- a/Zotlabs/Module/Photo.php
+++ b/Zotlabs/Module/Photo.php
@@ -83,7 +83,7 @@ class Photo extends \Zotlabs\Web\Controller {
$modified = strtotime($r[0]['edited'] . "Z");
$mimetype = $r[0]['mimetype'];
if(intval($r[0]['os_storage']))
- $data = file_get_contents($data);
+ $data = file_get_contents(dbunescbin($r[0]['content']));
else
$data = dbunescbin($r[0]['content']);
}