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 | 16d07ca58c9f360192c67f6e21307f12b5aaa366 (patch) | |
tree | ba06b77b5c6a4d2729bb2cadcbf8fe973a3ca2ca | |
parent | 516fc65cb5c24cb323f75b0cc8fa1c1704722013 (diff) | |
download | prosody-16d07ca58c9f360192c67f6e21307f12b5aaa366.tar.gz prosody-16d07ca58c9f360192c67f6e21307f12b5aaa366.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 |