diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-24 10:01:01 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-24 10:05:37 -0400 |
commit | 36487246eddc87342d113de8f133f8fb910c70ad (patch) | |
tree | f073b1cc6089e8b24241995b351ebf77722d06b1 /lib/filecache | |
parent | cfec290ad90f8bce01f37cd0ec1f957219770aad (diff) | |
download | nextcloud-server-36487246eddc87342d113de8f133f8fb910c70ad.tar.gz nextcloud-server-36487246eddc87342d113de8f133f8fb910c70ad.zip |
Switch to using file cache ids instead of paths for file sharing
Diffstat (limited to 'lib/filecache')
-rw-r--r-- | lib/filecache/cached.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filecache/cached.php b/lib/filecache/cached.php index 17a792a23d4..1e17666717e 100644 --- a/lib/filecache/cached.php +++ b/lib/filecache/cached.php @@ -58,7 +58,7 @@ class OC_FileCache_Cached{ if($parent==-1){ return array(); } - $query=OC_DB::prepare('SELECT path,name,ctime,mtime,mimetype,size,encrypted,versioned,writable FROM *PREFIX*fscache WHERE parent=? AND (mimetype LIKE ? OR mimetype = ?)'); + $query=OC_DB::prepare('SELECT id,path,name,ctime,mtime,mimetype,size,encrypted,versioned,writable FROM *PREFIX*fscache WHERE parent=? AND (mimetype LIKE ? OR mimetype = ?)'); $result=$query->execute(array($parent, $mimetype_filter.'%', 'httpd/unix-directory'))->fetchAll(); if(is_array($result)){ return $result; |