diff options
author | Kim Alvefur <zash@zash.se> | 2020-10-07 16:10:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-10-07 16:10:51 +0200 |
commit | 58be93c18484c9e12f276f5bb0f8d49e3d833b47 (patch) | |
tree | ba06b77b5c6a4d2729bb2cadcbf8fe973a3ca2ca | |
parent | 915cebae961534f07c3c70bc5ab7b3ec5b790aba (diff) | |
download | prosody-58be93c18484c9e12f276f5bb0f8d49e3d833b47.tar.gz prosody-58be93c18484c9e12f276f5bb0f8d49e3d833b47.zip |
core.moduleapi: Use resource path for :load_resource()
-rw-r--r-- | core/moduleapi.lua | 2 |
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 |