aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-05-09 19:35:29 +0200
committerKim Alvefur <zash@zash.se>2014-05-09 19:35:29 +0200
commite31991a7735da1ab9d8a9a229e0c8d33810a50a5 (patch)
tree79c439fbb15efa9d233466a37f727ae57b2b397e /core/moduleapi.lua
parente242d9ba34bb6f54b8efb9665564a7a36cbf9689 (diff)
downloadprosody-e31991a7735da1ab9d8a9a229e0c8d33810a50a5.tar.gz
prosody-e31991a7735da1ab9d8a9a229e0c8d33810a50a5.zip
core.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from util.paths
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 65e00d41..8b477140 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -13,6 +13,7 @@ local set = require "util.set";
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 @@ function api:get_directory()
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