same for search by mime

This commit is contained in:
Jörn Friedrich Dreyer 2013-08-28 21:10:06 +02:00 committed by Victor Dubiniuk
parent 3b4020e811
commit 6aeb0a99da
1 changed files with 4 additions and 4 deletions

View File

@ -290,10 +290,10 @@ class Shared_Cache extends Cache {
while ($row = $result->fetchRow()) {
if (substr($row['path'], 0, 6)==='files/') {
$row['path'] = substr($row['path'],6); // remove 'files/' from path as it's relative to '/Shared'
}
$row['mimetype'] = $this->getMimetype($row['mimetype']);
$row['mimepart'] = $this->getMimetype($row['mimepart']);
$files[] = $row;
} // else skip results out of the files folder
}
}
return $files;