diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-27 12:41:10 +0400 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-27 12:41:10 +0400 |
commit | cca61d4e3d89e6ca875c016d47033e69392b9ba5 (patch) | |
tree | 7ee70396951b338bc26ed9c7b78ae30c48ac8b17 /reader | |
parent | 013d05f4b8bcbe81cb007e5708ff2152e77747c1 (diff) |
port to new searchByMime
Diffstat (limited to 'reader')
-rwxr-xr-x | reader/templates/index.php | 3 |
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. |