Browse Source

+ Mark unread now marks topics unread based on the current message selected

emanuele 12 years ago
parent
commit
842c0f70df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Display.php

+ 1 - 1
Sources/Display.php

@@ -499,7 +499,7 @@ function Display()
 	// Set the topic's information for the template.
 	$context['subject'] = $topicinfo['subject'];
 	$context['num_views'] = $topicinfo['num_views'];
-	$context['mark_unread_time'] = $topicinfo['new_from'];
+	$context['mark_unread_time'] = !empty($virtual_msg) ? $virtual_msg : $topicinfo['new_from'];
 
 	// Set a canonical URL for this page.
 	$context['canonical_url'] = $scripturl . '?topic=' . $topic . '.' . $context['start'];