also return fileid in OC_Filecache::get
This commit is contained in:
parent
74611801dd
commit
8fe69dfac6
|
@ -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) ) {
|
||||||
|
|
Loading…
Reference in New Issue