From: martin Date: Sun, 19 May 2002 04:43:04 +0000 (+0000) Subject: Moved the array into the function. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a99e41938e463a0cd2a27eef48ee210142587d9e;p=moodle.git Moved the array into the function. --- 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]; }