aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/cache.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-04-08 15:21:52 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-05-18 11:06:23 +0200
commitdd3d0194a691c0718ec9c91d4e2f18ca0479e4a7 (patch)
tree43303bda3fbdf3354237d684993cd681579f6d30 /apps/files_sharing/lib/cache.php
parent73a3086945b41afa39debd89481c021934dedb67 (diff)
downloadnextcloud-server-dd3d0194a691c0718ec9c91d4e2f18ca0479e4a7.tar.gz
nextcloud-server-dd3d0194a691c0718ec9c91d4e2f18ca0479e4a7.zip
Move files sharing app (mostly) to OCP\DB
Diffstat (limited to 'apps/files_sharing/lib/cache.php')
-rw-r--r--apps/files_sharing/lib/cache.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index 49f5a4e8e7c..bb62e8078ad 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -120,7 +120,7 @@ class Shared_Cache extends Cache {
if (!is_int($sourceId) || $sourceId === 0) {
$sourceId = $this->storage->getSourceId();
}
- $query = \OC_DB::prepare(
+ $query = \OCP\DB::prepare(
'SELECT `fileid`, `storage`, `path`, `parent`, `name`, `mimetype`, `mimepart`,'
. ' `size`, `mtime`, `encrypted`, `storage_mtime`, `etag`, `permissions`'
. ' FROM `*PREFIX*filecache` WHERE `fileid` = ?');
@@ -499,7 +499,7 @@ class Shared_Cache extends Cache {
*/
private function getParentInfo($id) {
$sql = 'SELECT `parent`, `name` FROM `*PREFIX*filecache` WHERE `fileid` = ?';
- $query = \OC_DB::prepare($sql);
+ $query = \OCP\DB::prepare($sql);
$result = $query->execute(array($id));
if ($row = $result->fetchRow()) {
return array((int)$row['parent'], $row['name']);