diff options
Diffstat (limited to 'src/build_post.php')
-rw-r--r-- | src/build_post.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/build_post.php b/src/build_post.php index 9039dcb..d889b92 100644 --- a/src/build_post.php +++ b/src/build_post.php @@ -1,6 +1,6 @@ <?php -function build_post_subject($listtag, $forumtag, $subject) { +function build_post_subject($listtag, $forumtag, $subject, $reply) { // strip the '[list]' and '[forum]' tags $tagpat = '/(' . preg_quote($listtag, '/') . '|' . preg_quote($forumtag, '/') . ')\\s*/'; @@ -18,6 +18,10 @@ function build_post_subject($listtag, $forumtag, $subject) { $subject = '(no subject)'; } + if ($reply) { + $subject = 'Re: ' . $subject; + } + return $subject; } |