aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-07 16:10:51 +0200
committerKim Alvefur <zash@zash.se>2020-10-07 16:10:51 +0200
commit58be93c18484c9e12f276f5bb0f8d49e3d833b47 (patch)
treeba06b77b5c6a4d2729bb2cadcbf8fe973a3ca2ca /core
parent915cebae961534f07c3c70bc5ab7b3ec5b790aba (diff)
downloadprosody-58be93c18484c9e12f276f5bb0f8d49e3d833b47.tar.gz
prosody-58be93c18484c9e12f276f5bb0f8d49e3d833b47.zip
core.moduleapi: Use resource path for :load_resource()
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 1212db5a..0f43478c 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -500,7 +500,7 @@ function api:get_directory()
end
function api:load_resource(path, mode)
- path = resolve_relative_path(self:get_directory(), path);
+ path = resolve_relative_path(self.resource_path or self:get_directory(), path);
return io.open(path, mode);
end