Diff

core/storagemanager.lua @ 4115:801725a32c96

storagemanager: Export load_driver() function so it can be used from e.g. migrators
author Matthew Wild <mwild1@gmail.com>
date Tue, 11 Jan 2011 06:18:24 +0000
parent 4085:7699cef04740
child 4758:b8b050e76ee1
line wrap: on
line diff
--- a/core/storagemanager.lua	Tue Jan 11 05:30:55 2011 +0000
+++ b/core/storagemanager.lua	Tue Jan 11 06:18:24 2011 +0000
@@ -45,7 +45,7 @@
 end
 prosody.events.add_handler("host-activated", initialize_host, 101);
 
-local function load_driver(host, driver_name)
+function load_driver(host, driver_name)
 	if driver_name == "null" then
 		return null_storage_provider;
 	end