liquid_feedback_frontend
diff app/main/draft/diff.lua @ 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 | b79085a2f92e |
children | 32cc544d5a5b |
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)