From afd9ffaa07e1a2761d93d3898e5bd5c1608ccee8 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Fri, 27 Jan 2023 16:21:15 +0100 Subject: [PATCH] use c API for some functions --- silkmvc/core/mimes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/silkmvc/core/mimes.lua b/silkmvc/core/mimes.lua index 09f9d8c..01c22ff 100644 --- a/silkmvc/core/mimes.lua +++ b/silkmvc/core/mimes.lua @@ -42,11 +42,11 @@ 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 + if WWW_ROOT and not ulib.exists(mpath) then local mpath = WWW_ROOT .. "/" .. "mimes.json" end local xmimes = {} - if utils.file_exists(mpath) then + if ulib.exists(mpath) then xmimes = JSON.decodeFile(mpath) end if (name:find("Makefile$")) then