From c18d43d2cbc078efeadcaa2a1f907565c1961db6 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 24 Apr 2016 15:28:35 +0200 Subject: [PATCH] gluon-core: use correct file variable in get_site_config() --- package/gluon-core/files/usr/lib/lua/gluon/site_config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gluon-core/files/usr/lib/lua/gluon/site_config.lua b/package/gluon-core/files/usr/lib/lua/gluon/site_config.lua index 6f01b066..4c0a2d22 100644 --- a/package/gluon-core/files/usr/lib/lua/gluon/site_config.lua +++ b/package/gluon-core/files/usr/lib/lua/gluon/site_config.lua @@ -7,7 +7,7 @@ local function get_site_config() local file = assert(io.open(config)) local decoder = json.new() - ltn12.pump.all(ltn12.source.file(io.open(config)), decoder:sink()) + ltn12.pump.all(ltn12.source.file(file), decoder:sink()) file:close()