summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-04-09 11:36:51 -0700
committerBrion Vibber <brion@pobox.com>2010-04-09 11:56:27 -0700
commitd00942cce185e24e5d67a1e2ccb92faf5be7d1d4 (patch)
tree2c4e21be55482a29c64e91353c9e755e79c71c3a /lib/noticelist.php
parent9cfc5c0f5ad248a8b594f95a8bcbe5adfdbf6925 (diff)
Fix for conversation check in @-reply notification email; i18n cleanup on mail messages: fixed some bad gettext usage, added trans doc comments.
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r--lib/noticelist.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 83c8de9f6..4f997a328 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -543,18 +543,7 @@ class NoticeListItem extends Widget
function showContext()
{
- $hasConversation = false;
- if (!empty($this->notice->conversation)) {
- $conversation = Notice::conversationStream(
- $this->notice->conversation,
- 1,
- 1
- );
- if ($conversation->N > 0) {
- $hasConversation = true;
- }
- }
- if ($hasConversation) {
+ if ($this->notice->hasConversation()) {
$conv = Conversation::staticGet(
'id',
$this->notice->conversation