Procházet zdrojové kódy

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

emanuele před 12 roky
rodič
revize
842c0f70df
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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'];