diff options
author | TheSFReader <TheSFReader@gmail.com> | 2013-02-03 11:06:26 +0100 |
---|---|---|
committer | TheSFReader <TheSFReader@gmail.com> | 2013-02-03 11:06:26 +0100 |
commit | d03155a8d509685f64bc4b56ba3e76ef5a94c7d9 (patch) | |
tree | 1d72bcf3910e3f9c55a09731cd230287c4c10772 /lib | |
parent | a3b922763ef56337cb6bb5a7b52cf9f68bbce2a3 (diff) | |
download | nextcloud-server-d03155a8d509685f64bc4b56ba3e76ef5a94c7d9.tar.gz nextcloud-server-d03155a8d509685f64bc4b56ba3e76ef5a94c7d9.zip |
translate the mimtype/mimepart to readable in the searchByMime function
Diffstat (limited to 'lib')
-rw-r--r-- | lib/files/cache/cache.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/files/cache/cache.php b/lib/files/cache/cache.php index 69cbaea8516..dcb6e8fd39a 100644 --- a/lib/files/cache/cache.php +++ b/lib/files/cache/cache.php @@ -410,7 +410,13 @@ class Cache { ); $mimetype = $this->getMimetypeId($mimetype); $result = $query->execute(array($mimetype, $this->numericId)); - return $result->fetchAll(); + $files = array(); + while ($row = $result->fetchRow()) { + $row['mimetype'] = $this->getMimetype($row['mimetype']); + $row['mimepart'] = $this->getMimetype($row['mimepart']); + $files[] = $row; + } + return $files; } /** |