# HG changeset patch # User Kim Alvefur # Date 1411424613 -7200 # Node ID 6d4d87a89026bf785cc6a974f5a2138433f52da3 # Parent c3011ab945b8a95719e8b5bf8685990d35ffac57 core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r) diff -r c3011ab945b8 -r 6d4d87a89026 core/moduleapi.lua --- 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; diff -r c3011ab945b8 -r 6d4d87a89026 core/modulemanager.lua --- 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 = { ["*"] = {} };