]> source.dussan.org Git - nextcloud-server.git/commitdiff
OC5 does not have executeAudited
authorJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 23 Oct 2013 12:40:47 +0000 (14:40 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 23 Oct 2013 12:40:47 +0000 (14:40 +0200)
apps/files_sharing/lib/cache.php

index a7201da8aabb43a8dee414f2e3ced70dfd36067a..6e2fae77dffaf4d70539611b447c4d82ff6b8f48 100644 (file)
@@ -237,7 +237,9 @@ class Shared_Cache extends Cache {
                                        `encrypted`, `unencrypted_size`, `etag`
                                        FROM `*PREFIX*filecache` WHERE `name` LIKE ? AND `fileid` IN (' . $placeholders . ')';
 
-                       $result = \OC_DB::executeAudited($sql, array_merge(array($pattern), $chunk));
+                       $stmt = \OC_DB::prepare($sql);
+                       
+                       $result = $stmt->execute(array_merge(array($pattern), $chunk));
 
                        while ($row = $result->fetchRow()) {
                                if (substr($row['path'], 0, 6)==='files/') {
@@ -278,7 +280,9 @@ class Shared_Cache extends Cache {
                                        `encrypted`, `unencrypted_size`, `etag`
                                        FROM `*PREFIX*filecache` WHERE ' . $where . ' AND `fileid` IN (' . $placeholders . ')';
 
-                       $result = \OC_DB::executeAudited($sql, array_merge(array($mimetype), $chunk));
+                       $stmt = \OC_DB::prepare($sql);
+                       
+                       $result = $stmt->execute(array_merge(array($mimetype), $chunk));
 
                        while ($row = $result->fetchRow()) {
                                if (substr($row['path'], 0, 6)==='files/') {