From a99e41938e463a0cd2a27eef48ee210142587d9e Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 19 May 2002 04:43:04 +0000 Subject: [PATCH] Moved the array into the function. --- files/mimetypes.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/mimetypes.php b/files/mimetypes.php index 1c0826ae03..4c0b3914f6 100644 --- a/files/mimetypes.php +++ b/files/mimetypes.php @@ -1,5 +1,6 @@ array ("type"=>"document/unknown", "icon"=>"unknown.gif"), "zip" => array ("type"=>"application/zip", "icon"=>"zip.gif"), @@ -20,9 +21,6 @@ "xls" => array ("type"=>"application/vnd.ms-excel", "icon"=>"excel.gif") ); -function mimeinfo($element, $filename) { - global $mimeinfo; - if (eregi("\.([a-z0-9]+)$", $filename, $match)) { $result = $mimeinfo[strtolower($match[1])][$element]; } -- 2.39.5