Do not set handler if man page doesn't exist so we can provide proper 404 (or other fall-back)

Make 'Intro' page title fixing case-insensitive to deal with Plan B man pages.
This commit is contained in:
Uriel 2009-05-29 10:04:27 +00:00
parent 7718328227
commit 9d7ac1c517
2 changed files with 14 additions and 9 deletions

View file

@ -1,12 +1,7 @@
<pre>
%{
# Hack to handle 0intro files.
f=$wman_page^$"wman_pe
if(~ $wman_page intro && test -f $wman_cat_path^/0^$f)
f=0^$f
wman_page_gen $wman_cat_path^/^$f
wman_page_gen $wman_page_file
%}
</pre>