Changeset

6422:6d4d87a89026

core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r)
author Kim Alvefur <zash@zash.se>
date Tue, 23 Sep 2014 00:23:33 +0200 (2014-09-22)
parents 6421:c3011ab945b8
children 6423:1c78f10f05d0 6424:89c42aff8510
files core/moduleapi.lua core/modulemanager.lua
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/moduleapi.lua	Thu Sep 18 10:21:38 2014 +0200
+++ b/core/moduleapi.lua	Tue Sep 23 00:23:33 2014 +0200
@@ -370,7 +370,9 @@
 	return require"core.storagemanager".open(self.host, name or self.name, type);
 end
 
-return function (mm)
+function api.init(mm)
 	modulemanager = mm;
 	return api;
 end
+
+return api;
--- a/core/modulemanager.lua	Thu Sep 18 10:21:38 2014 +0200
+++ b/core/modulemanager.lua	Tue Sep 23 00:23:33 2014 +0200
@@ -37,7 +37,7 @@
 
 module "modulemanager"
 
-local api = _G.require "core.moduleapi"(_M); -- Module API container
+local api = _G.require "core.moduleapi".init(_M); -- Module API container
 
 -- [host] = { [module] = module_env }
 local modulemap = { ["*"] = {} };