Introduction
Introduction Statistics Contact Development Disclaimer Help
Replace 404_handler with a direct call to tpl_handler. - swerc - anselm's simpl…
git clone git://git.suckless.org/swerc
Log
Files
Refs
README
---
commit 27a149e8038abc12616729ac01e2189ad895fa13
parent cac45e1c1587963634dc29ba0f6974aba7217c6b
Author: [email protected] <unknown>
Date: Sun, 28 Dec 2008 11:52:57 +0100
Replace 404_handler with a direct call to tpl_handler.
Diffstat:
M bin/werc.rc | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/bin/werc.rc b/bin/werc.rc
@@ -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^' -…
echo 'Status: 404 Not Found'
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.