Software /
code /
prosody
Changeset
6414:31c15004bfb0
core.moduleapi: Use require instead of global to get storagemanager in module:open_store()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 17 Sep 2014 14:47:52 +0200 |
parents | 6413:a552f4170aed |
children | 6415:010b141e91ed |
files | core/moduleapi.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/moduleapi.lua Wed Sep 17 14:30:29 2014 +0200 +++ b/core/moduleapi.lua Wed Sep 17 14:47:52 2014 +0200 @@ -19,6 +19,7 @@ local error, setmetatable, type = error, setmetatable, type; local ipairs, pairs, select, unpack = ipairs, pairs, select, unpack; local tonumber, tostring = tonumber, tostring; +local require = require; local prosody = prosody; local hosts = prosody.hosts; @@ -366,7 +367,7 @@ end function api:open_store(name, type) - return storagemanager.open(self.host, name or self.name, type); + return require"core.storagemanager".open(self.host, name or self.name, type); end return api;