Changeset 885 for trunk/Modules/File/File.php
- Timestamp:
- Sep 8, 2020, 5:57:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/File/File.php
r876 r885 43 43 function DetectMimeType($FileName) 44 44 { 45 global $MimeTypes;46 47 $Result = $MimeTypes[ pathinfo($FileName, PATHINFO_EXTENSION)][0];45 $MimeTypes = GetMimeTypes(); 46 $MimeType = pathinfo($FileName, PATHINFO_EXTENSION); 47 $Result = $MimeTypes[$MimeType][0]; 48 48 return $Result; 49 49 }
Note:
See TracChangeset
for help on using the changeset viewer.