Fix added 'Re: ' (again Polish) on articles that are not replies.
This commit is contained in:
parent
70d2ccefdb
commit
4eae8da7ce
|
@ -191,7 +191,7 @@ function thread_overview_interpret($line, $overviewformat, $groupname)
|
||||||
for ($i = 0; $i < count($overviewfmt) - 1; $i ++) {
|
for ($i = 0; $i < count($overviewfmt) - 1; $i ++) {
|
||||||
if ($overviewfmt[$i] == "Subject:") {
|
if ($overviewfmt[$i] == "Subject:") {
|
||||||
$subject = preg_replace('/\[doctalk\]/i', '', headerDecode($over[$i + 1]));
|
$subject = preg_replace('/\[doctalk\]/i', '', headerDecode($over[$i + 1]));
|
||||||
$article->isReply = splitSubject($subject);
|
// $article->isReply = splitSubject($subject);
|
||||||
$article->subject = $subject;
|
$article->subject = $subject;
|
||||||
}
|
}
|
||||||
if ($overviewfmt[$i] == "Date:") {
|
if ($overviewfmt[$i] == "Date:") {
|
||||||
|
@ -214,6 +214,7 @@ function thread_overview_interpret($line, $overviewformat, $groupname)
|
||||||
if ($overviewfmt[$i] == "Message-ID:")
|
if ($overviewfmt[$i] == "Message-ID:")
|
||||||
$article->id = $over[$i + 1];
|
$article->id = $over[$i + 1];
|
||||||
if (($overviewfmt[$i] == "References:") && ($over[$i + 1] != "")) {
|
if (($overviewfmt[$i] == "References:") && ($over[$i + 1] != "")) {
|
||||||
|
$article->isReply = true;
|
||||||
$article->references = explode(" ", $over[$i + 1]);
|
$article->references = explode(" ", $over[$i + 1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -690,11 +691,14 @@ function thread_format_subject($c, $group, $highlightids = false)
|
||||||
} else {
|
} else {
|
||||||
$offset = $CONFIG['timezone'] * 60;
|
$offset = $CONFIG['timezone'] * 60;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
if ($c->isReply) {
|
if ($c->isReply) {
|
||||||
$re = "Re: ";
|
$re = "Re: ";
|
||||||
} else {
|
} else {
|
||||||
$re = "";
|
$re = "";
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
$re = "";
|
||||||
// is the current article to be highlighted?
|
// is the current article to be highlighted?
|
||||||
if ((is_array($highlightids))) {
|
if ((is_array($highlightids))) {
|
||||||
if ((in_array($c->id, $highlightids)) || (in_array($c->number, $highlightids))) {
|
if ((in_array($c->id, $highlightids)) || (in_array($c->number, $highlightids))) {
|
||||||
|
|
Loading…
Reference in New Issue