mirror of
https://github.com/lxsang/silk.git
synced 2024-11-14 01:08:22 +01:00
looking for mimes.json in either root folder or site folter
All checks were successful
gitea-sync/silk/pipeline/head This commit looks good
All checks were successful
gitea-sync/silk/pipeline/head This commit looks good
This commit is contained in:
parent
c40fae8f7e
commit
b5cadaae5f
@ -42,6 +42,9 @@ end
|
||||
function std.extra_mime(name)
|
||||
local ext = utils.ext(name)
|
||||
local mpath = __ROOT__ .. "/" .. "mimes.json"
|
||||
if WWW_ROOT and not utils.file_exists(mpath) then
|
||||
local mpath = WWW_ROOT .. "/" .. "mimes.json"
|
||||
end
|
||||
local xmimes = {}
|
||||
if utils.file_exists(mpath) then
|
||||
xmimes = JSON.decodeFile(mpath)
|
||||
|
Loading…
Reference in New Issue
Block a user