From: b Date: Sat, 27 Jan 2024 10:36:13 +0000 (+0000) Subject: update static page after comment X-Git-Tag: v1.2.4~1 X-Git-Url: http://bicyclesonthemoon.info/git-projects/?a=commitdiff_plain;h=b42904d861753473d34356667cd21dfdccf44156;p=ott%2Fbsta update static page after comment --- 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'});