diff --git a/Rocksolid_Light/rocksolid/lib/message.inc.php b/Rocksolid_Light/rocksolid/lib/message.inc.php index 9574d7d..d347df2 100644 --- a/Rocksolid_Light/rocksolid/lib/message.inc.php +++ b/Rocksolid_Light/rocksolid/lib/message.inc.php @@ -808,7 +808,6 @@ function message_show($group, $id, $attachment = 0, $article_data = false, $maxl $local_poster = true; } $body = $article_data->body[$attachment]; - $notice = false; if ($head) { // User blocklist if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) { @@ -838,11 +837,9 @@ function message_show($group, $id, $attachment = 0, $article_data = false, $maxl return "no-archive"; } - if(stripos($head->subject, "Re: ") === 0) { - if(!isset($head->references)) { - $notice = '

(article missing references header)


'; - } - } + // Any header checks to display notice in article display + $notice = display_header_notice($head); + if(isset($head->content_type[0])) { if(!strpos($head->content_type[0], "/")) { echo '

(message #' . $head->number . ' not displayed - malformed header)


'; @@ -1048,4 +1045,14 @@ function articleflat_pageselect($group, $id, $article_count, $first) $return .= ''; } return $return; +} + +function display_header_notice($head) { + $notice = false; + if(stripos($head->subject, "Re: ") === 0) { + if(!isset($head->references)) { + $notice = '

(article missing references header)


'; + } + } + return $notice; } \ No newline at end of file