diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-10-12 23:39:55 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-10-12 23:39:55 -0700 |
commit | 136e5fdf951f42c95a77d66d7fec9e95a1186e76 (patch) | |
tree | 89a4a65050d7fd8c53c2ba46a46d4d2c5523e695 | |
parent | 75fe9f9cc4321fcc1e51f679861a2e470e5e41ca (diff) | |
download | volse-hubzilla-136e5fdf951f42c95a77d66d7fec9e95a1186e76.tar.gz volse-hubzilla-136e5fdf951f42c95a77d66d7fec9e95a1186e76.tar.bz2 volse-hubzilla-136e5fdf951f42c95a77d66d7fec9e95a1186e76.zip |
port of file detail api call
-rw-r--r-- | include/api.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/api.php b/include/api.php index da612b2b2..b8e0582a6 100644 --- a/include/api.php +++ b/include/api.php @@ -636,9 +636,7 @@ require_once('include/attach.php'); ); if($r) { $data = dbunescbin($r[0]['data']); - if($r[0]['flags'] & ATTACH_FLAG_DIR) - $r[0]['is_dir'] = '1'; - if($r[0]['flags'] & ATTACH_FLAG_OS) + if(intval($r[0]['os_storage'])) $r[0]['data'] = base64_encode(file_get_contents(dbunescbin($r[0]['data']))); else $r[0]['data'] = base64_encode(dbunescbin($r[0]['data'])); |