/[webpac]/branches/tehnika/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/tehnika/WebPac.pm

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

revision 139 by dpavlin, Thu Sep 4 14:57:02 2003 UTC revision 140 by dpavlin, Thu Oct 30 00:10:09 2003 UTC
# Line 235  sub show_index { Line 235  sub show_index {
235                  $cfg_global->val('global', 'dbi_passwd') || ''                  $cfg_global->val('global', 'dbi_passwd') || ''
236          );          );
237    
238          my $total = $index->check($field);          my $total = $index->count($field,$limit);
239          if (! $total) {          if (! $total) {
240                  my $tmpl = $self->load_tmpl('no_index.html');                  my $tmpl = $self->load_tmpl('no_index.html');
241                  $tmpl->param('field',$field);                  $tmpl->param('field',$field);
# Line 258  sub show_index { Line 258  sub show_index {
258                  get_data_callback => sub {                  get_data_callback => sub {
259                          my ($offset, $rows) = @_;                          my ($offset, $rows) = @_;
260    
261                          my @result = $index->fetch($field,'item',$limit, $offset, $rows);                          my @result = $index->fetch($field,$limit, $offset, $rows);
262                          return \@result;                          return \@result;
263                  },                  },
264                  rows => $total,                  rows => $total,

Legend:
Removed from v.139  
changed lines
  Added in v.140

  ViewVC Help
Powered by ViewVC 1.1.26