Diff

mod_admin_web/admin_web/mod_admin_web.lua @ 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
parent 396:8cb21ef24e5d
child 696:da69b65288e4
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";