Software /
code /
prosody
Comparison
core/storagemanager.lua @ 4758:b8b050e76ee1
storagemanager: Fix incorrect variable name
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 03:25:40 +0100 |
parent | 4115:801725a32c96 |
child | 5036:be33164aa97e |
comparison
equal
deleted
inserted
replaced
4757:5fb68e68ba0b | 4758:b8b050e76ee1 |
---|---|
45 end | 45 end |
46 prosody.events.add_handler("host-activated", initialize_host, 101); | 46 prosody.events.add_handler("host-activated", initialize_host, 101); |
47 | 47 |
48 function load_driver(host, driver_name) | 48 function load_driver(host, driver_name) |
49 if driver_name == "null" then | 49 if driver_name == "null" then |
50 return null_storage_provider; | 50 return null_storage_driver; |
51 end | 51 end |
52 local driver = stores_available:get(host, driver_name); | 52 local driver = stores_available:get(host, driver_name); |
53 if driver then return driver; end | 53 if driver then return driver; end |
54 local ok, err = modulemanager.load(host, "storage_"..driver_name); | 54 local ok, err = modulemanager.load(host, "storage_"..driver_name); |
55 if not ok then | 55 if not ok then |