From 53f8c4c553950bd15dcf8cf77ac8596b1453d443 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 16 Feb 2005 00:26:37 +0000 Subject: [PATCH] be more forgiving to changes in results templates git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@670 13eb9ef6-21d5-0310-b721-a9d68796d827 --- WebPac.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebPac.pm b/WebPac.pm index 94d47d5..8c2e88e 100644 --- a/WebPac.pm +++ b/WebPac.pm @@ -328,7 +328,7 @@ sub show_results_list { push @s_arr, $q->param("f$i")."_swish".$exact."=(".join(" or ",@swish_q).")"; } - my $tmpl = $self->load_tmpl(url_ex($q,'results.html'), global_vars => 1); + my $tmpl = $self->load_tmpl(url_ex($q,'results.html'), global_vars => 1, die_on_bad_params => 0); $tmpl->param('url_params',"?".join("&",@url_params)); @@ -469,7 +469,7 @@ sub show_index { return $html; } - my $tmpl = $self->load_tmpl(url_ex($q,'index_res.html'), global_vars => 1); + my $tmpl = $self->load_tmpl(url_ex($q,'index_res.html'), global_vars => 1, die_on_bad_params => 0); $tmpl->param('field',$field); $tmpl->param('limit',$limit); $tmpl->param('total',$total); -- 2.20.1