Diff

core/moduleapi.lua @ 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
parent 6415:010b141e91ed
child 6423:1c78f10f05d0
child 6556:74253c7beb9c
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;