mirror of
https://github.com/lxsang/silk.git
synced 2024-12-26 04:48:21 +01:00
use c API for some functions
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
b5cadaae5f
commit
afd9ffaa07
@ -42,11 +42,11 @@ end
|
|||||||
function std.extra_mime(name)
|
function std.extra_mime(name)
|
||||||
local ext = utils.ext(name)
|
local ext = utils.ext(name)
|
||||||
local mpath = __ROOT__ .. "/" .. "mimes.json"
|
local mpath = __ROOT__ .. "/" .. "mimes.json"
|
||||||
if WWW_ROOT and not utils.file_exists(mpath) then
|
if WWW_ROOT and not ulib.exists(mpath) then
|
||||||
local mpath = WWW_ROOT .. "/" .. "mimes.json"
|
local mpath = WWW_ROOT .. "/" .. "mimes.json"
|
||||||
end
|
end
|
||||||
local xmimes = {}
|
local xmimes = {}
|
||||||
if utils.file_exists(mpath) then
|
if ulib.exists(mpath) then
|
||||||
xmimes = JSON.decodeFile(mpath)
|
xmimes = JSON.decodeFile(mpath)
|
||||||
end
|
end
|
||||||
if (name:find("Makefile$")) then
|
if (name:find("Makefile$")) then
|
||||||
|
Loading…
Reference in New Issue
Block a user