diff --git a/lib/file-control.php b/lib/file-control.php index 6fdbb33..dac0584 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -33,7 +33,7 @@ if ($_GET['action']=="load") { } else { $fileExt = explode(" ",pathinfo($file, PATHINFO_EXTENSION)); $fileExt = $fileExt[0]; - if (array_search($fileExt,array("coffee","css","htm","html","js","less","md","php","py","rb","ruby","sql","txt","xml"))!==false) {$finfo = "text";}; + if (array_search($fileExt,array("coffee","css","htm","html","js","json","less","md","php","py","rb","ruby","sql","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) { diff --git a/lib/file-types.css b/lib/file-types.css index 819ca3d..b0b9b89 100644 --- a/lib/file-types.css +++ b/lib/file-types.css @@ -30,7 +30,7 @@ .fileManager LI.ext-gif:before {background-position: -80px 0} .fileManager LI.ext-htm:before, .fileManager LI.ext-html:before {background-position: -96px 0} .fileManager LI.ext-jpg:before, .fileManager LI.ext-jpeg:before {background-position: -112px 0} -.fileManager LI.ext-js:before {background-position: -128px 0} +.fileManager LI.ext-js:before, .fileManager LI.ext-json:before {background-position: -128px 0} .fileManager LI.ext-less:before {background-position: -144px 0} .fileManager LI.ext-md:before {background-position: -160px 0} .fileManager LI.ext-php:before {background-position: -176px 0}