diff --git a/include/comment.php b/include/comment.php
index e6646d7..8a5d1ba 100644
--- a/include/comment.php
+++ b/include/comment.php
@@ -232,19 +232,13 @@ class Comment {
// body
echo htmlify_urls($this->sBody), "
\n";
- // only add RE: once
- if(eregi("RE:", $this->sSubject))
- $sSubject = $this->sSubject;
- else
- $sSubject = "RE: ".$this->sSubject;
-
$oVersion = new version($this->iVersionId);
$oM = new objectManager("comment", "Post new ocmment");
$oM->setReturnTo($oVersion->objectMakeUrl());
// reply post buttons
echo " [makeUrl("add")."&iVersionId=$this->iVersionId\">post new] \n";
- echo " [makeUrl("add")."&iVersionId=$this->iVersionId&sSubject=".
- urlencode("$sSubject")."&iThread=$this->iCommentId\">reply to this] \n";
+ echo " [makeUrl("add")."&iVersionId=$this->iVersionId".
+ "&iThread=$this->iCommentId\">reply to this] \n";
echo "\n";
@@ -605,6 +599,17 @@ class Comment {
echo html_frame_start($oRow->subject,500);
echo htmlify_urls($oRow->body), "
\n";
echo html_frame_end();
+
+ /* Set default reply subject */
+ if(!$this->sSubject)
+ {
+ // Only add RE: once
+ if(eregi("RE:", $oRow->subject))
+ $this->sSubject = $oRow->subject;
+ else
+ $this->sSubject = "RE: ".$oRow->subject;
+ }
+
}
}