diff options
author | Zot <mike@macgirvin.com> | 2021-08-30 07:56:00 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-08-30 07:56:00 +0000 |
commit | 5b73cee0d8fc331984305eb8461b37d66e4e8335 (patch) | |
tree | 35b1b5f6af7373d938b44402a17dcbcf5533a474 /include/attach.php | |
parent | 5eaabbdb18b392478b6782fb580f22b3a1e666f2 (diff) | |
download | volse-hubzilla-5b73cee0d8fc331984305eb8461b37d66e4e8335.tar.gz volse-hubzilla-5b73cee0d8fc331984305eb8461b37d66e4e8335.tar.bz2 volse-hubzilla-5b73cee0d8fc331984305eb8461b37d66e4e8335.zip |
file is stored in wrong directory (/) if uploaded using photo module and it...
Diffstat (limited to 'include/attach.php')
-rw-r--r-- | include/attach.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/attach.php b/include/attach.php index 56fb936e7..ef3d6e242 100644 --- a/include/attach.php +++ b/include/attach.php @@ -684,7 +684,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { $pathname = ''; - if($is_photo) { + if($source === 'photos') { if($newalbum) { $pathname = filepath_macro($newalbum); } @@ -698,6 +698,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { elseif(array_key_exists('folder',$arr)) { $pathname = find_path_by_hash($channel['channel_id'], $arr['folder']); } + if(! $pathname) { $pathname = filepath_macro($upload_path); } |