Software /
code /
prosody
Diff
core/moduleapi.lua @ 6165:6a184b16b717
core.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from util.paths
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 09 May 2014 19:35:29 +0200 |
parent | 5825:ac5e05ffc921 |
child | 6168:3942630b4e35 |
child | 6414:31c15004bfb0 |
line wrap: on
line diff
--- a/core/moduleapi.lua Fri May 09 19:34:35 2014 +0200 +++ b/core/moduleapi.lua Fri May 09 19:35:29 2014 +0200 @@ -13,6 +13,7 @@ local logger = require "util.logger"; local pluginloader = require "util.pluginloader"; local timer = require "util.timer"; +local resolve_relative_path = require"util.paths".resolve_relative_path; local t_insert, t_remove, t_concat = table.insert, table.remove, table.concat; local error, setmetatable, type = error, setmetatable, type; @@ -360,7 +361,7 @@ end function api:load_resource(path, mode) - path = config.resolve_relative_path(self:get_directory(), path); + path = resolve_relative_path(self:get_directory(), path); return io.open(path, mode); end