summaryrefslogtreecommitdiff
path: root/src/luaotfload-main.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-06-20 23:46:01 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2015-06-20 23:46:01 +0200
commitce886921fec191c6d62e2592fda064790bef8e9f (patch)
tree03f9b4251ae106b4b6471fc02f7f031d49d9b7dd /src/luaotfload-main.lua
parent8018408e5e87da1ba46414d4620ac5c21a0b3bdb (diff)
downloadluaotfload-ce886921fec191c6d62e2592fda064790bef8e9f.tar.gz
[init] add stub for module sanitization
Diffstat (limited to 'src/luaotfload-main.lua')
-rw-r--r--src/luaotfload-main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index d15e082..6e7a971 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -143,7 +143,7 @@ end
local make_loader = function (prefix)
return function (name)
local modname = make_loader_name (prefix, name)
- require (modname)
+ return require (modname)
end
end
@@ -154,7 +154,7 @@ local load_fontloader_module = make_loader "fontloader"
luaotfload.loaders.luaotfload = load_luaotfload_module
luaotfload.loaders.fontloader = load_fontloader_module
-load_luaotfload_module "init" --- fontloader initialization
+luaotfload.init = load_luaotfload_module "init" --- fontloader initialization
local log = luaotfload.log
local logreport = log.report