From b42904d861753473d34356667cd21dfdccf44156 Mon Sep 17 00:00:00 2001 From: b Date: Sat, 27 Jan 2024 10:36:13 +0000 Subject: [PATCH] update static page after comment --- opomba.1.pl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/opomba.1.pl b/opomba.1.pl index d437ba5..4e29a56 100644 --- a/opomba.1.pl +++ b/opomba.1.pl @@ -47,7 +47,7 @@ use bsta_lib ( 'print_html_body_start', 'print_html_body_end', 'bb_to_html', 'eval_bb', 'merge_settings', - 'write_index' + 'write_index', 'write_static_viewer_page' ); ###PERL_PATH_SEPARATOR: PATH_SEPARATOR = / @@ -408,6 +408,18 @@ close($fh); if (($frame == 0) && ($ong_state > STATE->{'inactive'})) { write_index(\%state, \%settings); } +elsif ($frame >= 1) { + write_static_viewer_page( + $frame, + \%state, + \%settings, + '', # default + '', # frame data + '', # prev frame data + '', # next frame data + \%words_data + ); +} if (open_encoded($fh, ">>:encoding(UTF-8)", LOG_WORDS_PATH())) { delete ($post_data{'password'}); -- 2.30.2