Changeset

549:fc5df35a3fe4

mod_admin_web: Use proper path for www_data files (Thanks Zash)
author Florian Zeitz <florob@babelmonkeys.de>
date Sat, 14 Jan 2012 20:50:24 +0100
parents 548:4691e72a055c
children 550:d8143f627f9f
files mod_admin_web/admin_web/mod_admin_web.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_admin_web/admin_web/mod_admin_web.lua	Sat Jan 14 19:49:35 2012 +0000
+++ b/mod_admin_web/admin_web/mod_admin_web.lua	Sat Jan 14 20:50:24 2012 +0100
@@ -31,7 +31,7 @@
 
 local service = {};
 
-local http_base = (prosody.paths.plugins or "./plugins") .. "/admin_web/www_files";
+local http_base = module.path:gsub("/[^/]+$","") .. "/www_files";
 
 local xmlns_adminsub = "http://prosody.im/adminsub";
 local xmlns_c2s_session = "http://prosody.im/streams/c2s";