liquid_feedback_frontend

changeset 1230:02772bc49467

Added correct use of WEBMCP_BASE_PATH instead of request.get_app_basepath()
author bsw
date Tue Dec 01 17:55:08 2015 +0100 (2015-12-01)
parents f853aa830f0d
children e7fc3fed1593
files app/main/draft/diff.lua env/ldap/__init.lua
line diff
     1.1 --- a/app/main/draft/diff.lua	Tue Dec 01 17:53:01 2015 +0100
     1.2 +++ b/app/main/draft/diff.lua	Tue Dec 01 17:55:08 2015 +0100
     1.3 @@ -71,8 +71,8 @@
     1.4  
     1.5  local key = multirand.string(24, "0123456789abcdefghijklmnopqrstuvwxyz")
     1.6  
     1.7 -local old_draft_filename = encode.file_path(request.get_app_basepath(), 'tmp', "diff-" .. key .. "-old.tmp")
     1.8 -local new_draft_filename = encode.file_path(request.get_app_basepath(), 'tmp', "diff-" .. key .. "-new.tmp")
     1.9 +local old_draft_filename = encode.file_path(WEBMCP_BASE_PATH, 'tmp', "diff-" .. key .. "-old.tmp")
    1.10 +local new_draft_filename = encode.file_path(WEBMCP_BASE_PATH, 'tmp', "diff-" .. key .. "-new.tmp")
    1.11  
    1.12  local old_draft_file = assert(io.open(old_draft_filename, "w"))
    1.13  old_draft_file:write(old_draft_content)
     2.1 --- a/env/ldap/__init.lua	Tue Dec 01 17:53:01 2015 +0100
     2.2 +++ b/env/ldap/__init.lua	Tue Dec 01 17:55:08 2015 +0100
     2.3 @@ -1,2 +1,2 @@
     2.4  -- Lua library path for C modules for mldap
     2.5 -package.cpath = request.get_app_basepath() .. "/lib/mldap/?.so" .. ";" .. package.cpath
     2.6 \ No newline at end of file
     2.7 +package.cpath = WEBMCP_BASE_PATH .. "lib/mldap/?.so" .. ";" .. package.cpath
     2.8 \ No newline at end of file

Impressum / About Us