From: Michael Andreen Date: Tue, 23 Jan 2007 12:55:17 +0000 (+0000) Subject: only put old message in text field when previewing, not after submitting X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=a0338ef8c49837940c009341b135fd038d8acf7a;hp=316afd5349c199a96bcd6635ffb1781efe5a3840;p=ndwebbie.git only put old message in text field when previewing, not after submitting --- diff --git a/ND/Web/Forum.pm b/ND/Web/Forum.pm index 1b06b8a..76adfb2 100644 --- a/ND/Web/Forum.pm +++ b/ND/Web/Forum.pm @@ -58,9 +58,9 @@ ORDER BY fp.time ASC my $text = parseMarkup(escapeHTML(param('message'))); $text .= p b $@ if $@; push @posts,{message => $text, unread => 1, username => 'PREVIEW', Time => 'Not submitted yet', NewPosts => $old ? 1 : 0}; + $template->param(Message => param('message')); } $template->param(Posts => \@posts); - $template->param(Message => param('message')); markThreadAsRead($thread->{id});