--- trunk/WebPac.pm 2003/09/04 14:57:02 128 +++ trunk/WebPac.pm 2003/10/30 00:10:09 140 @@ -235,7 +235,7 @@ $cfg_global->val('global', 'dbi_passwd') || '' ); - my $total = $index->check($field); + my $total = $index->count($field,$limit); if (! $total) { my $tmpl = $self->load_tmpl('no_index.html'); $tmpl->param('field',$field); @@ -258,7 +258,7 @@ get_data_callback => sub { my ($offset, $rows) = @_; - my @result = $index->fetch($field,'item',$limit, $offset, $rows); + my @result = $index->fetch($field,$limit, $offset, $rows); return \@result; }, rows => $total,