Comparison

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
comparison
equal deleted inserted replaced
548:4691e72a055c 549:fc5df35a3fe4
29 29
30 module:set_global(); 30 module:set_global();
31 31
32 local service = {}; 32 local service = {};
33 33
34 local http_base = (prosody.paths.plugins or "./plugins") .. "/admin_web/www_files"; 34 local http_base = module.path:gsub("/[^/]+$","") .. "/www_files";
35 35
36 local xmlns_adminsub = "http://prosody.im/adminsub"; 36 local xmlns_adminsub = "http://prosody.im/adminsub";
37 local xmlns_c2s_session = "http://prosody.im/streams/c2s"; 37 local xmlns_c2s_session = "http://prosody.im/streams/c2s";
38 local xmlns_s2s_session = "http://prosody.im/streams/s2s"; 38 local xmlns_s2s_session = "http://prosody.im/streams/s2s";
39 39