liquid_feedback_frontend
diff app/main/member_image/show.lua @ 729:f52f918b38b8
Cleanup of config and orphaned code
| author | bsw |
|---|---|
| date | Thu Jun 28 17:07:00 2012 +0200 (2012-06-28) |
| parents | 034f96181e59 |
| children | 904f6807f7fa |
line diff
1.1 --- a/app/main/member_image/show.lua Thu Jun 28 16:31:02 2012 +0200 1.2 +++ b/app/main/member_image/show.lua Thu Jun 28 17:07:00 2012 +0200 1.3 @@ -4,7 +4,7 @@ 1.4 print('Cache-Control: max-age=300'); -- let the client cache the image for 5 minutes 1.5 1.6 if record == nil then 1.7 - local default_file = config.member_image_default_file[image_type] 1.8 + local default_file = ({ avatar = "avatar.jpg", photo = nil })[image_type] 1.9 if default_file then 1.10 print('Location: ' .. encode.url{ static = default_file } .. '\n\n') 1.11 else