diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-07 19:22:07 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-07 19:22:07 +0100 |
commit | 2d597bad93219365679ec4d77b2fe25609897c9f (patch) | |
tree | e16c9633e2b4b0e88af80526a475c6a8a7f474e5 /util | |
parent | aea63c60138b6a8ca2a30d26bf07c026d03dec44 (diff) | |
download | prosody-2d597bad93219365679ec4d77b2fe25609897c9f.tar.gz prosody-2d597bad93219365679ec4d77b2fe25609897c9f.zip |
util.import: Explicitly export the global import function [luacheck]
Diffstat (limited to 'util')
-rw-r--r-- | util/import.lua | 2 |
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 = {}; |