From 6e061cbc304adf5eda7b3d35818321b754ef06dd Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Tue, 30 Apr 2013 17:47:58 +0100 Subject: [PATCH] Markdown (md) files can now be opened in editor --- lib/file-control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file-control.php b/lib/file-control.php index d0daa32..238b0cb 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -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) {