aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-14 21:40:11 -0700
committerzotlabs <mike@macgirvin.com>2017-03-14 21:40:11 -0700
commite399de8ad4a17c4fa07f7ad41c879278f6ce5458 (patch)
tree5b2b3f2773007cbf761539334fc41c7778476620
parent32a9487ff9901bcd59d65a410becbed832dd2e2f (diff)
downloadvolse-hubzilla-e399de8ad4a17c4fa07f7ad41c879278f6ce5458.tar.gz
volse-hubzilla-e399de8ad4a17c4fa07f7ad41c879278f6ce5458.tar.bz2
volse-hubzilla-e399de8ad4a17c4fa07f7ad41c879278f6ce5458.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));