From 289f3b4a28c07ad7fd3d387bf1daaab9e0f9fa55 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 19 Apr 2013 13:29:47 +0100 Subject: moduleapi: Add module:open_store() as a front-end to storagemanager.open() --- core/moduleapi.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') diff --git a/core/moduleapi.lua b/core/moduleapi.lua index fa20c3cd..a8e6881e 100644 --- a/core/moduleapi.lua +++ b/core/moduleapi.lua @@ -337,4 +337,8 @@ function api:load_resource(path, mode) return io.open(path, mode); end +function api:open_store(name, type) + return storagemanager.open(self.host, name, type); +end + return api; -- cgit v1.2.3