aboutsummaryrefslogtreecommitdiffstats
path: root/mod/attach.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-14 15:59:11 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-14 15:59:11 -0700
commit23f7f60bf7b15ca5332803ca1e24280489042b7a (patch)
tree799fe952a0cf83df0d3f08b1eb5b145145b4c79d /mod/attach.php
parentb7be79c5e7bfe25c3c55784733b6f616f18d85dc (diff)
downloadvolse-hubzilla-23f7f60bf7b15ca5332803ca1e24280489042b7a.tar.gz
volse-hubzilla-23f7f60bf7b15ca5332803ca1e24280489042b7a.tar.bz2
volse-hubzilla-23f7f60bf7b15ca5332803ca1e24280489042b7a.zip
make new os_storage flag work
Diffstat (limited to 'mod/attach.php')
-rw-r--r--mod/attach.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/attach.php b/mod/attach.php
index 118c67dd5..ad5dead07 100644
--- a/mod/attach.php
+++ b/mod/attach.php
@@ -35,7 +35,7 @@ function attach_init(&$a) {
}
header('Content-disposition: attachment; filename="' . $r['data']['filename'] . '"');
- if($r['data']['flags'] & ATTACH_FLAG_OS ) {
+ if(intval($r['data']['os_storage'])) {
$fname = dbunescbin($r['data']['data']);
$istream = fopen('store/' . $c[0]['channel_address'] . '/' . $fname,'rb');
$ostream = fopen('php://output','wb');