diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-07-23 23:14:50 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-07-23 23:14:50 +0500 |
commit | 1cbe0cea9b54b640b79b7cf91633015750396318 (patch) | |
tree | df97cbffbf51736969dc96e55abc69d992259670 /prosody | |
parent | 56bdddaebbfb3ccede367a0f10dbd2d91c381206 (diff) | |
download | prosody-1cbe0cea9b54b640b79b7cf91633015750396318.tar.gz prosody-1cbe0cea9b54b640b79b7cf91633015750396318.zip |
prosody.resolve_relative_path: Updated to take a parent path to resolve against.
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -165,7 +165,7 @@ function init_global_state() local path_sep = package.config:sub(1,1); local rel_path_start = ".."..path_sep; - function prosody.resolve_relative_path(path) + function prosody.resolve_relative_path(parent_path, path) if path then local is_relative; if path_sep == "/" and path:sub(1,1) ~= "/" then @@ -174,7 +174,7 @@ function init_global_state() is_relative = true; end if is_relative then - return CFG_CONFIGDIR..path_sep..path; + return parent_path..path_sep..path; end end return path; |