about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-08-29 09:26:33 +0000
committerEric Wong <e@80x24.org>2022-08-29 19:05:44 +0000
commit95a3cace67ff5297e6fc35972e401b7cb17ee310 (patch)
tree59c76a0e3c8d54ae2536e530fd8da4ca3b497dc8 /lib/PublicInbox/View.pm
parent7dafd481c3e4252447b6b7cf4f4a8d4620d1cc10 (diff)
downloadpublic-inbox-95a3cace67ff5297e6fc35972e401b7cb17ee310.tar.gz
Another step towards making our internal APIs more writev-like
and reducing the copies needed for `join' or `.=' concatenation.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 158feb6a..5fbdd1fa 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -64,7 +64,7 @@ sub no_over_html ($) {
         }
         delete $ctx->{obuf};
         eval { $$obuf .= html_footer($ctx, $eml) };
-        html_oneshot($ctx, 200, $obuf);
+        html_oneshot($ctx, 200, $$obuf);
 }
 
 # public functions: (unstable)
@@ -1222,7 +1222,7 @@ sub pagination_footer ($$) {
                 $next = $next ? "$next | " : '             | ';
                 $prev .= qq[ | <a\nhref="$latest">latest</a>];
         }
-        ($next || $prev) ? \"<hr><pre>page: $next$prev</pre>" : \'';
+        ($next || $prev) ? "<hr><pre>page: $next$prev</pre>" : '';
 }
 
 sub paginate_recent ($$) {