mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 06:01:19 +00:00
fix getMimetype()
This commit is contained in:
parent
08d10d2cc0
commit
83770f7521
|
@ -415,7 +415,7 @@ function getMimeType($filename) { /* {{{ */
|
|||
case 'text/plain':
|
||||
$lastDotIndex = strrpos($filename, ".");
|
||||
if($lastDotIndex === false) $fileType = ".";
|
||||
else $fileType = substr($name, $lastDotIndex);
|
||||
else $fileType = substr($filename, $lastDotIndex);
|
||||
if($fileType == '.md')
|
||||
$mimetype = 'text/markdown';
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user