core/moduleapi.lua
changeset 9512 b57353f76c83
parent 9152 d03f21729b2c
child 9559 e4c09e335bd9
equal deleted inserted replaced
9511:2055b497b515 9512:b57353f76c83
   285 	return value;
   285 	return value;
   286 end
   286 end
   287 
   287 
   288 function api:get_option_path(name, default, parent)
   288 function api:get_option_path(name, default, parent)
   289 	if parent == nil then
   289 	if parent == nil then
   290 		parent = parent or self:get_directory();
   290 		parent = self:get_directory();
   291 	elseif prosody.paths[parent] then
   291 	elseif prosody.paths[parent] then
   292 		parent = prosody.paths[parent];
   292 		parent = prosody.paths[parent];
   293 	end
   293 	end
   294 	local value = self:get_option_string(name, default);
   294 	local value = self:get_option_string(name, default);
   295 	if value == nil then
   295 	if value == nil then