From 136e5fdf951f42c95a77d66d7fec9e95a1186e76 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 12 Oct 2015 23:39:55 -0700 Subject: port of file detail api call --- include/api.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/api.php') 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'])); -- cgit v1.2.3