mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 21:16:07 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
4888082cda
|
@ -415,7 +415,7 @@ function getMimeType($filename) { /* {{{ */
|
||||||
case 'text/plain':
|
case 'text/plain':
|
||||||
$lastDotIndex = strrpos($filename, ".");
|
$lastDotIndex = strrpos($filename, ".");
|
||||||
if($lastDotIndex === false) $fileType = ".";
|
if($lastDotIndex === false) $fileType = ".";
|
||||||
else $fileType = substr($name, $lastDotIndex);
|
else $fileType = substr($filename, $lastDotIndex);
|
||||||
if($fileType == '.md')
|
if($fileType == '.md')
|
||||||
$mimetype = 'text/markdown';
|
$mimetype = 'text/markdown';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user