diff options
author | Eric Wong <e@80x24.org> | 2015-08-21 23:43:12 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-21 23:43:12 +0000 |
commit | 62395935e7bdd8e67776ebb9018f4633e67ff081 (patch) | |
tree | ad0cdd7ae0f9d72d350b929afed4688f14f72792 /lib | |
parent | 7e3c392a55686d2ffe8611483e80a3ccc19e95f2 (diff) | |
download | public-inbox-62395935e7bdd8e67776ebb9018f4633e67ff081.tar.gz |
This is hopefully less ambiguous, as the word "count" confused me, too.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Search.pm | 4 | ||||
-rw-r--r-- | lib/PublicInbox/View.pm | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index f1ff3a4b..580b79fc 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -242,7 +242,7 @@ sub get_thread { my ($self, $mid, $opts) = @_; my $smsg = eval { $self->lookup_message($mid) }; - return { count => 0, msgs => [] } unless $smsg; + return { total => 0, msgs => [] } unless $smsg; my $qp = $self->qp; my $qtid = $qp->parse_query('thread:'.$smsg->thread_id); my $qsub = $qp->parse_query('path:'.mid_compressed($smsg->path)); @@ -267,7 +267,7 @@ sub do_enquire { PublicInbox::SearchMsg->load_doc($_->get_document); } $mset->items; - { count => $mset->get_matches_estimated, msgs => \@msgs } + { total => $mset->get_matches_estimated, msgs => \@msgs } } # read-write diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 4ed5344e..8105affe 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -438,7 +438,7 @@ sub html_footer { $idx = " <a\nhref=\"../t/$mid.html$t_anchor\">". "threadlink</a>$idx"; my $res = $srch->get_followups($mid); - if (my $c = $res->{count}) { + if (my $c = $res->{total}) { $c = $c == 1 ? '1 followup' : "$c followups"; $idx .= "\n$c:\n"; $res->{srch} = $srch; |