diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-14 21:40:11 -0700 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-03-29 13:43:13 +0200 |
commit | ec5e1067bc0a949ceea7e28dbf11873e693b2586 (patch) | |
tree | 3e290a27541b821ec9d5c9909c9c13537f03011c /include | |
parent | ee46faff1a49751dc2ee42729ccc4bb414b3d40d (diff) | |
download | volse-hubzilla-ec5e1067bc0a949ceea7e28dbf11873e693b2586.tar.gz volse-hubzilla-ec5e1067bc0a949ceea7e28dbf11873e693b2586.tar.bz2 volse-hubzilla-ec5e1067bc0a949ceea7e28dbf11873e693b2586.zip |
store os_path and display_path with files
Diffstat (limited to 'include')
-rw-r--r-- | include/attach.php | 5 |
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)); |