[Pkg-owncloud-commits] [owncloud] 131/394: also return fileid in OC_Filecache::get
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:11:45 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit f849dd06930100b9c44cab5ff32d77c6d5460648
Author: Robin Appelman <icewind at owncloud.com>
Date: Fri Nov 16 17:52:52 2012 +0100
also return fileid in OC_Filecache::get
---
lib/filecache/cached.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/filecache/cached.php b/lib/filecache/cached.php
index 9b1eb4f..bc49a90 100644
--- a/lib/filecache/cached.php
+++ b/lib/filecache/cached.php
@@ -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;
}
}
-}
\ No newline at end of file
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list