*/
static public function analyzeFile($path, $magic_db = null)
{
- /* If the PHP Mimetype extension is available, use that. */
if (Horde_Util::extensionExists('fileinfo')) {
$res = empty($magic_db)
? @finfo_open(FILEINFO_MIME)
}
}
- if (Horde_Util::extensionExists('mime_magic')) {
- return trim(mime_content_type($path));
- }
-
return false;
}
<api>alpha</api>
</stability>
<license uri="http://www.gnu.org/copyleft/lesser.html">LGPL</license>
- <notes> * Use Gnumeric to display MS Excel documents.
+ <notes>* Remove support for deprecated mime_magic module.
+ * Use Gnumeric to display MS Excel documents.
* Use AbiWord to display MS Word documents (Request #8011).
* Add support for decoding IDN (RFC 3490) names (Request #5836).
* Initial package.</notes>