Replace 404_handler with a direct call to tpl_handler.
This commit is contained in:
parent
9745991ff9
commit
7546c4f28b
1 changed files with 1 additions and 3 deletions
|
|
@ -99,8 +99,6 @@ fn dir_listing_handler {
|
|||
echo '</ul>'
|
||||
}
|
||||
|
||||
fn 404_handler { template `{get_lib_file 404.tpl} }
|
||||
|
||||
fn blog_dir_handler {
|
||||
blogDirs=$*
|
||||
tpl_handler lib/feeds/html.tpl
|
||||
|
|
@ -196,7 +194,7 @@ fn select_handler {
|
|||
|
||||
# File not found
|
||||
if not {
|
||||
set_handler 404_handler $body
|
||||
set_handler tpl_handler `{get_lib_file 404.tpl}
|
||||
dprint 'NOT FOUND: '$SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_REFERER^' - '^$"HTTP_USER_AGENT
|
||||
echo 'Status: 404 Not Found'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue