aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-07 19:22:07 +0100
committerKim Alvefur <zash@zash.se>2018-03-07 19:22:07 +0100
commit2d597bad93219365679ec4d77b2fe25609897c9f (patch)
treee16c9633e2b4b0e88af80526a475c6a8a7f474e5
parentaea63c60138b6a8ca2a30d26bf07c026d03dec44 (diff)
downloadprosody-2d597bad93219365679ec4d77b2fe25609897c9f.tar.gz
prosody-2d597bad93219365679ec4d77b2fe25609897c9f.zip
util.import: Explicitly export the global import function [luacheck]
-rw-r--r--util/import.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/import.lua b/util/import.lua
index 12d1957f..8ecfe43c 100644
--- a/util/import.lua
+++ b/util/import.lua
@@ -10,7 +10,7 @@
local unpack = table.unpack or unpack; --luacheck: ignore 113 143
local t_insert = table.insert;
-function import(module, ...)
+function _G.import(module, ...)
local m = package.loaded[module] or require(module);
if type(m) == "table" and ... then
local ret = {};