Software /
code /
prosody
Changeset
5131:0cd962661fa2
storagemanager: Remove usage of 'core' when calling configmanager.get()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 19 Sep 2012 12:08:33 +0100 |
parents | 5130:051d352ed03c |
children | 5132:ce6546f867f9 |
files | core/storagemanager.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/core/storagemanager.lua Mon Sep 17 05:42:10 2012 +0200 +++ b/core/storagemanager.lua Wed Sep 19 12:08:33 2012 +0100 @@ -59,7 +59,7 @@ end function get_driver(host, store) - local storage = config.get(host, "core", "storage"); + local storage = config.get(host, "storage"); local driver_name; local option_type = type(storage); if option_type == "string" then @@ -68,7 +68,7 @@ driver_name = storage[store]; end if not driver_name then - driver_name = config.get(host, "core", "default_storage") or "internal"; + driver_name = config.get(host, "default_storage") or "internal"; end local driver = load_driver(host, driver_name); @@ -95,7 +95,7 @@ end function purge(user, host) - local storage = config.get(host, "core", "storage"); + local storage = config.get(host, "storage"); local driver_name; if type(storage) == "table" then -- multiple storage backends in use that we need to purge