store os_path and display_path with files

This commit is contained in:
zotlabs 2017-03-14 21:40:11 -07:00 committed by Mario Vavti
parent ee46faff1a
commit ec5e1067bc

View File

@ -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));