be more forgiving to changes in results templates
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 16 Feb 2005 00:26:37 +0000 (00:26 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 16 Feb 2005 00:26:37 +0000 (00:26 +0000)
git-svn-id: file:///home/dpavlin/private/svn/webpac/trunk@670 13eb9ef6-21d5-0310-b721-a9d68796d827

WebPac.pm

index 94d47d5..8c2e88e 100644 (file)
--- 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);