/[webpac]/branches/drustvene/WebPac.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/drustvene/WebPac.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 669 by dpavlin, Wed Feb 16 00:04:24 2005 UTC revision 671 by dpavlin, Wed Feb 16 00:28:54 2005 UTC
# Line 148  sub make_pager($$$) { Line 148  sub make_pager($$$) {
148    
149    
150          foreach my $p (@{$pager->pages_in_set()}) {          foreach my $p (@{$pager->pages_in_set()}) {
151                  next if ($p < 0);                  next if ($p <= 0);
152                  if($p == $pager->current_page()) {                  if($p == $pager->current_page()) {
153                          $pager_jump .= "<b>$p</b> ";                          $pager_jump .= "<b>$p</b> ";
154                  } else {                  } else {
# Line 328  sub show_results_list { Line 328  sub show_results_list {
328                  push @s_arr, $q->param("f$i")."_swish".$exact."=(".join(" or ",@swish_q).")";                  push @s_arr, $q->param("f$i")."_swish".$exact."=(".join(" or ",@swish_q).")";
329          }          }
330    
331          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);
332    
333          $tmpl->param('url_params',"?".join("&",@url_params));          $tmpl->param('url_params',"?".join("&",@url_params));
334    
# Line 469  sub show_index { Line 469  sub show_index {
469                  return $html;                  return $html;
470          }          }
471    
472          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);
473          $tmpl->param('field',$field);          $tmpl->param('field',$field);
474          $tmpl->param('limit',$limit);          $tmpl->param('limit',$limit);
475          $tmpl->param('total',$total);          $tmpl->param('total',$total);

Legend:
Removed from v.669  
changed lines
  Added in v.671

  ViewVC Help
Powered by ViewVC 1.1.26