# HG changeset patch # User Florian Zeitz # Date 1326570624 -3600 # Node ID fc5df35a3fe4da09ee649252bdd1c78943318711 # Parent 4691e72a055c29e75a4e67d79504da498466c891 mod_admin_web: Use proper path for www_data files (Thanks Zash) diff -r 4691e72a055c -r fc5df35a3fe4 mod_admin_web/admin_web/mod_admin_web.lua --- 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";