diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-14 21:40:11 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-03-14 21:40:11 -0700 |
commit | e399de8ad4a17c4fa07f7ad41c879278f6ce5458 (patch) | |
tree | 5b2b3f2773007cbf761539334fc41c7778476620 /include | |
parent | 32a9487ff9901bcd59d65a410becbed832dd2e2f (diff) | |
download | volse-hubzilla-e399de8ad4a17c4fa07f7ad41c879278f6ce5458.tar.gz volse-hubzilla-e399de8ad4a17c4fa07f7ad41c879278f6ce5458.tar.bz2 volse-hubzilla-e399de8ad4a17c4fa07f7ad41c879278f6ce5458.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)); |