Skip to content
Snippets Groups Projects
Commit 8fe69dfa authored by Robin Appelman's avatar Robin Appelman
Browse files

also return fileid in OC_Filecache::get

parent 74611801
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ class OC_FileCache_Cached{ ...@@ -18,7 +18,7 @@ class OC_FileCache_Cached{
$root=OC_Filesystem::getRoot(); $root=OC_Filesystem::getRoot();
} }
$path=$root.$path; $path=$root.$path;
$stmt=OC_DB::prepare('SELECT `path`,`ctime`,`mtime`,`mimetype`,`size`,`encrypted`,`versioned`,`writable` FROM `*PREFIX*fscache` WHERE `path_hash`=?'); $stmt=OC_DB::prepare('SELECT `id`, `path`,`ctime`,`mtime`,`mimetype`,`size`,`encrypted`,`versioned`,`writable` FROM `*PREFIX*fscache` WHERE `path_hash`=?');
if ( ! OC_DB::isError($stmt) ) { if ( ! OC_DB::isError($stmt) ) {
$result=$stmt->execute(array(md5($path))); $result=$stmt->execute(array(md5($path)));
if ( ! OC_DB::isError($result) ) { if ( ! OC_DB::isError($result) ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment