diff --git a/drupal/sites/default/boinc/themes/boinc/templates/views-view-table--boinc-team-forum-topics.tpl.php b/drupal/sites/default/boinc/themes/boinc/templates/views-view-table--boinc-team-forum-topics.tpl.php index 7ef3abd41a..e81430f300 100644 --- a/drupal/sites/default/boinc/themes/boinc/templates/views-view-table--boinc-team-forum-topics.tpl.php +++ b/drupal/sites/default/boinc/themes/boinc/templates/views-view-table--boinc-team-forum-topics.tpl.php @@ -27,7 +27,6 @@ $topic_count = count($topics); $topic_index = 0; $first_non_sticky = FALSE; - ?> @@ -42,7 +41,7 @@ - + $topic): ?> uid); @@ -51,29 +50,29 @@ if ($topic_index == 1) { $row_class .= ' first'; } - if ($topic->sticky=="True") { + if ($result[$id]->node_boincteam_forum_node_sticky) { $row_class .= ' sticky'; } - elseif (!$first_non_sticky AND !($topic->sticky=="True")) { + elseif (!$first_non_sticky AND !($result[$id]->node_boincteam_forum_node_sticky)) { $row_class .= ' first-non-sticky'; $first_non_sticky = TRUE; } if ($topic_index == $topic_count) { $row_class .= ' last'; } - if ($topic->timestamp=="new" OR $topic->new_comments) { + if (!empty($topic->timestamp) OR $topic->new_comments) { $row_class .= ' updated'; } ?>
icon; ?> - sticky=="True"): ?> + node_boincteam_forum_node_sticky): ?> - comment != "Read/Write"): ?> + node_boincteam_forum_node_comment != COMMENT_NODE_READ_WRITE): ?> - timestamp=="new"): ?> + timestamp)): ?> new_comments): ?> @@ -87,8 +86,8 @@ new_comments): ?> - ]+href=([\'"])(.+?)\1[^>]*>/i', $topic->new_comments, $result); ?> - + ]+href=([\'"])(.+?)\1[^>]*>/i', $topic->new_comments, $myresult); ?> + comment_count; ?> new_comments): ?>