aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-14 21:40:11 -0700
committerMario Vavti <mario@mariovavti.com>2017-03-29 13:43:13 +0200
commitec5e1067bc0a949ceea7e28dbf11873e693b2586 (patch)
tree3e290a27541b821ec9d5c9909c9c13537f03011c
parentee46faff1a49751dc2ee42729ccc4bb414b3d40d (diff)
downloadvolse-hubzilla-ec5e1067bc0a949ceea7e28dbf11873e693b2586.tar.gz
volse-hubzilla-ec5e1067bc0a949ceea7e28dbf11873e693b2586.tar.bz2
volse-hubzilla-ec5e1067bc0a949ceea7e28dbf11873e693b2586.zip
store os_path and display_path with files
-rw-r--r--include/attach.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php
index 79313ab1a..f8227fb4b 100644
--- a/include/attach.php
+++ b/include/attach.php
@@ -705,8 +705,9 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
$os_relpath .= $hash;
// not yet used
- $os_path = '';
- $display_path = '';
+ $os_path = ltrim($os_relpath,'/');
+
+ $display_path = $pathname . '/' . $filename;
if($src)
@file_put_contents($os_basepath . $os_relpath,@file_get_contents($src));