Fixed bug #565396
This commit is contained in:
parent
9c021baac1
commit
b335127fd2
1 changed files with 9 additions and 7 deletions
|
|
@ -327,14 +327,16 @@ sub showReplyTree {
|
|||
$sql .= " order by messageId";
|
||||
$sth = WebGUI::SQL->read($sql);
|
||||
while (%data = $sth->hash) {
|
||||
$html .= '<tr><td class="tableHeader">';
|
||||
$html .= formatHeader($data{subject},$data{userId},$data{username},$data{dateOfPost},$data{views},
|
||||
WebGUI::URL::page('func=showMessage&mid='.$data{messageId}.'&wid='.$session{form}{wid}));
|
||||
$html .= '</td></tr><tr class="tableData"><td ';
|
||||
if ($data{messageId} == $message{messageId}) {
|
||||
$html .= 'class="highlight"';
|
||||
unless ($data{messageId} == $session{form}{mid} && $data{messageId} == $data{rid}) { # don't show first message.
|
||||
$html .= '<tr><td class="tableHeader">';
|
||||
$html .= formatHeader($data{subject},$data{userId},$data{username},$data{dateOfPost},$data{views},
|
||||
WebGUI::URL::page('func=showMessage&mid='.$data{messageId}.'&wid='.$session{form}{wid}));
|
||||
$html .= '</td></tr><tr class="tableData"><td ';
|
||||
if ($data{messageId} == $message{messageId}) {
|
||||
$html .= 'class="highlight"';
|
||||
}
|
||||
$html .= '>'.formatMessage($data{message}).'<br/><br/></td></tr>';
|
||||
}
|
||||
$html .= '>'.formatMessage($data{message}).'<br/><br/></td></tr>';
|
||||
}
|
||||
$sth->finish;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue