translate the mimtype/mimepart to readable in the searchByMime function

This commit is contained in:
TheSFReader 2013-02-03 11:06:26 +01:00
parent a3b922763e
commit d03155a8d5

View file

@ -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;
}
/**