mod_invite/mod_invite.lua
changeset 3553 b059a3fb2a58
parent 3484 5911030a1a66
child 3556 5370bc374c83
equal deleted inserted replaced
3552:8a15a9b13881 3553:b059a3fb2a58
    10 local tostring = tostring;
    10 local tostring = tostring;
    11 
    11 
    12 local invite_storage = module:open_store();
    12 local invite_storage = module:open_store();
    13 local inviter_storage = module:open_store("inviter");
    13 local inviter_storage = module:open_store("inviter");
    14 
    14 
    15 local serve = module:depends"http_files".serve;
    15 local serve;
       
    16 if not pcall(function ()
       
    17 	local http_files = require "net.http.files";
       
    18 	serve = http_files.serve;
       
    19 end) then
       
    20 	serve = module:depends"http_files".serve;
       
    21 end
    16 
    22 
    17 module:depends"adhoc";
    23 module:depends"adhoc";
    18 module:depends"http";
    24 module:depends"http";
    19 
    25 
    20 local function apply_template(template, args)
    26 local function apply_template(template, args)