Markdown (md) files can now be opened in editor

This commit is contained in:
Matt Pass
2013-04-30 17:47:58 +01:00
parent 9e44b76214
commit 6e061cbc30

View File

@@ -28,7 +28,7 @@ if ($_GET['action']=="load") {
finfo_close($finfoMIME);
} else {
$fileExt = pathinfo($file, PATHINFO_EXTENSION);
if (array_search($fileExt,array("coffee","css","htm","html","js","less","php","rb","ruby","txt","xml"))!==false) {$finfo = "text";};
if (array_search($fileExt,array("coffee","css","htm","html","js","less","md","php","rb","ruby","txt","xml"))!==false) {$finfo = "text";};
if (array_search($fileExt,array("gif","jpg","jpeg","png"))!==false) {$finfo = "image";};
}
if (strpos($finfo,"text")===0 || strpos($finfo,"empty")!==false) {