liquid_feedback_frontend

annotate app/main/member_image/show.lua @ 52:88ac7798b562

Several bugfixes (getpic.c, accepted but canceled issues, ...); Listing of available policies

- Bugfixes in fastpath/getpic.c (related to crashes since alpha5)
- Respect Content-Types of images in database
(needs database update, as Content-Type was incorrectly stored by previous versions)
- Typo fixed in help messages
- RSS-Feed (currently only after manual authentication while session is valid)
- Listing of available policies
- German translation fixed: "gebe" -> "gib" (Imperativ)
- Bugfixes related to issues which had been accepted but canceled afterwards
- Prohibit creation of initiatives in disabled areas or with disabled policies
author bsw/jbe
date Thu Apr 15 19:58:25 2010 +0200 (2010-04-15)
parents 80c215dbf076
children 034f96181e59
rev   line source
bsw/jbe@4 1 local image_type = param.get("image_type")
bsw/jbe@4 2 local record = MemberImage:by_pk(param.get_id(), image_type, true)
bsw/jbe@4 3
bsw/jbe@4 4 if record == nil then
bsw/jbe@4 5 local default_file = config.member_image_default_file[image_type]
bsw/jbe@4 6 if default_file then
bsw/jbe@4 7 print('Location: ' .. encode.url{ static = default_file } .. '\n\n')
bsw/jbe@4 8 else
bsw/jbe@4 9 print('Location: ' .. encode.url{ static = 'icons/16/lightning.png' } .. '\n\n')
bsw/jbe@4 10 end
bsw/jbe@4 11 exit()
bsw/jbe@4 12 end
bsw/jbe@4 13
bsw/jbe@52 14 assert(record.content_type, "No content-type set for image.")
bsw/jbe@52 15
bsw/jbe@52 16 slot.set_layout(nil, record.content_type)
bsw/jbe@4 17
bsw/jbe@4 18 if record then
bsw/jbe@52 19 slot.put_into("data", record.data)
bsw/jbe@4 20 end

Impressum / About Us