Software /
code /
prosody
Changeset
8570:a4ef8cfa97bd
util.import: Explicitly export the global import function [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Mar 2018 19:22:07 +0100 |
parents | 8569:f88bd2428bc2 |
children | 8571:44217f40ff4a |
files | util/import.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/import.lua Wed Mar 07 19:21:24 2018 +0100 +++ b/util/import.lua Wed Mar 07 19:22:07 2018 +0100 @@ -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 = {};