liquid_feedback_frontend

diff model/member.lua @ 326:75ce92899049

Work on "config/example.lua" as complete example configuration; Removed config.absolute_base_url
author jbe
date Tue Feb 28 17:59:42 2012 +0100 (2012-02-28)
parents 774c0188a4a0
children f0a59bbf659a
line diff
     1.1 --- a/model/member.lua	Tue Feb 28 16:38:54 2012 +0100
     1.2 +++ b/model/member.lua	Tue Feb 28 17:59:42 2012 +0100
     1.3 @@ -334,9 +334,9 @@
     1.4    local content = slot.use_temporary(function()
     1.5      slot.put(_"Hello\n\n")
     1.6      slot.put(_"You are invited to LiquidFeedback. To register please click the following link:\n\n")
     1.7 -    slot.put(config.absolute_base_url .. "index/register.html?invite_key=" .. self.invite_code .. "\n\n")
     1.8 +    slot.put(request.get_absolute_baseurl() .. "index/register.html?invite_key=" .. self.invite_code .. "\n\n")
     1.9      slot.put(_"If this link is not working, please open following url in your web browser:\n\n")
    1.10 -    slot.put(config.absolute_base_url .. "index/register.html\n\n")
    1.11 +    slot.put(request.get_absolute_baseurl() .. "index/register.html\n\n")
    1.12      slot.put(_"On that page please enter the invite key:\n\n")
    1.13      slot.put(self.invite_code .. "\n\n")
    1.14    end)
    1.15 @@ -361,9 +361,9 @@
    1.16    local content = slot.use_temporary(function()
    1.17      slot.put(_"Hello " .. self.name .. ",\n\n")
    1.18      slot.put(_"Please confirm your email address by clicking the following link:\n\n")
    1.19 -    slot.put(config.absolute_base_url .. "index/confirm_notify_email.html?secret=" .. self.notify_email_secret .. "\n\n")
    1.20 +    slot.put(request.get_absolute_baseurl() .. "index/confirm_notify_email.html?secret=" .. self.notify_email_secret .. "\n\n")
    1.21      slot.put(_"If this link is not working, please open following url in your web browser:\n\n")
    1.22 -    slot.put(config.absolute_base_url .. "index/confirm_notify_email.html\n\n")
    1.23 +    slot.put(request.get_absolute_baseurl() .. "index/confirm_notify_email.html\n\n")
    1.24      slot.put(_"On that page please enter the confirmation code:\n\n")
    1.25      slot.put(self.notify_email_secret .. "\n\n")
    1.26    end)
    1.27 @@ -479,4 +479,4 @@
    1.28      :optional_object_mode()
    1.29      :for_share()
    1.30      :exec()) and true or false
    1.31 -end
    1.32 \ No newline at end of file
    1.33 +end

Impressum / About Us