JSON added as a supported filetype

Need to only add to array and a CSS classname
This commit is contained in:
Matt Pass
2013-09-16 08:30:52 +01:00
parent f0da80b886
commit f4e2f24f65
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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}