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 | 1660775b989bfcaca2080ff327e8b7acc06970f3 (patch) | |
tree | e16c9633e2b4b0e88af80526a475c6a8a7f474e5 | |
parent | 13a78a9463cc890a3796c8868a79c8da70059815 (diff) | |
download | prosody-1660775b989bfcaca2080ff327e8b7acc06970f3.tar.gz prosody-1660775b989bfcaca2080ff327e8b7acc06970f3.zip |
util.import: Explicitly export the global import function [luacheck]
-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 = {}; |