also return fileid in OC_Filecache::get

remotes/origin/stable45
Robin Appelman 2012-11-16 17:52:52 +07:00 committed by Thomas Mueller
parent a566684564
commit f849dd0693
1 changed files with 2 additions and 2 deletions

@ -18,7 +18,7 @@ class OC_FileCache_Cached{
$root=OC_Filesystem::getRoot();
}
$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) ) {
$result=$stmt->execute(array(md5($path)));
if ( ! OC_DB::isError($result) ) {
@ -78,4 +78,4 @@ class OC_FileCache_Cached{
return false;
}
}
}
}