Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/reader
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-27 12:41:10 +0400
committerRobin Appelman <icewind@owncloud.com>2012-10-27 12:41:10 +0400
commitcca61d4e3d89e6ca875c016d47033e69392b9ba5 (patch)
tree7ee70396951b338bc26ed9c7b78ae30c48ac8b17 /reader
parent013d05f4b8bcbe81cb007e5708ff2152e77747c1 (diff)
port to new searchByMime
Diffstat (limited to 'reader')
-rwxr-xr-xreader/templates/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/reader/templates/index.php b/reader/templates/index.php
index e73b58473..a5d900357 100755
--- a/reader/templates/index.php
+++ b/reader/templates/index.php
@@ -10,7 +10,8 @@
$dir = empty($_['dir'])?'/':$_['dir'];
// Search for pdf files in current directory.
- $pdfs = \OC_FileCache::searchByMime('application', 'pdf', '/'.\OCP\USER::getUser().'/files'.$dir);
+ $view = new \OC\Files\View('/'.\OCP\USER::getUser().'/files'.$dir);
+ $pdfs = $view->searchByMime('application/pdf');
sort($pdfs);
// Construct an array, to store pdf files and directory names, in which pdf files reside.