aboutsummaryrefslogtreecommitdiffstats
path: root/util
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
commit1660775b989bfcaca2080ff327e8b7acc06970f3 (patch)
treee16c9633e2b4b0e88af80526a475c6a8a7f474e5 /util
parent13a78a9463cc890a3796c8868a79c8da70059815 (diff)
downloadprosody-1660775b989bfcaca2080ff327e8b7acc06970f3.tar.gz
prosody-1660775b989bfcaca2080ff327e8b7acc06970f3.zip
util.import: Explicitly export the global import function [luacheck]
Diffstat (limited to 'util')
-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 = {};