liquid_feedback_frontend

diff app/main/draft/show.lua @ 1309:32cc544d5a5b

Cumulative patch for upcoming frontend version 4
author bsw/jbe
date Sun Jul 15 14:07:29 2018 +0200 (2018-07-15)
parents fede09736f2b
children 17e7082c377a
line diff
     1.1 --- a/app/main/draft/show.lua	Thu Jun 23 03:30:57 2016 +0200
     1.2 +++ b/app/main/draft/show.lua	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -1,4 +1,12 @@
     1.4 -local draft = Draft:new_selector():add_where{ "id = ?", param.get_id() }:single_object_mode():exec()
     1.5 +local draft = Draft:new_selector():add_where{ "id = ?", param.get_id() }:optional_object_mode():exec()
     1.6 +
     1.7 +if not draft then
     1.8 +  execute.view { module = "index", view = "404" }
     1.9 +  request.set_status("404 Not Found")
    1.10 +  return
    1.11 +end
    1.12 +
    1.13 +
    1.14  local source = param.get("source", atom.boolean)
    1.15  
    1.16  execute.view{

Impressum / About Us