aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Storage/Directory.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-11 17:45:10 -0700
committerredmatrix <git@macgirvin.com>2016-07-11 17:45:10 -0700
commita01baab4f0dc1654dfe2d2cc6fc78e5c3c8d9f4e (patch)
treea0c5e55621e24f0fce38a827613fc16d6b56f199 /Zotlabs/Storage/Directory.php
parent71b001fdb7f4c900f6e7ff15a29952d6dc82c1fc (diff)
parent17c3e12eabf93fe76061af0b97d25c6a9d080025 (diff)
downloadvolse-hubzilla-a01baab4f0dc1654dfe2d2cc6fc78e5c3c8d9f4e.tar.gz
volse-hubzilla-a01baab4f0dc1654dfe2d2cc6fc78e5c3c8d9f4e.tar.bz2
volse-hubzilla-a01baab4f0dc1654dfe2d2cc6fc78e5c3c8d9f4e.zip
Merge branch 'dev' into perms
Diffstat (limited to 'Zotlabs/Storage/Directory.php')
-rw-r--r--Zotlabs/Storage/Directory.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zotlabs/Storage/Directory.php b/Zotlabs/Storage/Directory.php
index 7a2d9e68b..b524b3cab 100644
--- a/Zotlabs/Storage/Directory.php
+++ b/Zotlabs/Storage/Directory.php
@@ -206,6 +206,8 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota {
throw new DAV\Exception\Forbidden('Permission denied.');
}
+ require_once('include/attach.php');
+
$mimetype = z_mime_content_type($name);
$c = q("SELECT * FROM channel WHERE channel_id = %d AND channel_removed = 0 LIMIT 1",