]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
feed: new_html_i: switch from zmore to `print $zfh'
[public-inbox.git] / lib / PublicInbox / Feed.pm
index 56ca98861a096365bd78402340f91078eb3ad85d..affe0fb6229ebf8b4fa5d54c604e75481b1d7e6a 100644 (file)
@@ -49,15 +49,15 @@ sub generate_html_index {
 
 sub new_html_i {
        my ($ctx, $eml) = @_;
-       $ctx->zmore($ctx->html_top) if exists $ctx->{-html_tip};
+       print { $ctx->zfh } $ctx->html_top if exists $ctx->{-html_tip};
 
        if ($eml) {
                $ctx->{smsg}->populate($eml) if !$ctx->{ibx}->{over};
                return PublicInbox::View::eml_entry($ctx, $eml);
        }
        my $smsg = shift @{$ctx->{msgs}} or
-               $ctx->zmore(PublicInbox::View::pagination_footer(
-                                               $ctx, './new.html'));
+               print { $ctx->zfh } PublicInbox::View::pagination_footer(
+                                               $ctx, './new.html');
        $smsg;
 }