From c64c79eb119726e359bb4b47d1e30340d96f983d Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 21 May 2013 20:52:18 -0700 Subject: fix app display --- include/ItemObject.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/ItemObject.php') diff --git a/include/ItemObject.php b/include/ItemObject.php index b3c65008d..ccd192ff5 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -215,9 +215,11 @@ class Item extends BaseObject { 'osparkle' => $osparkle, 'sparkle' => $sparkle, 'title' => $item['title'], + 'ago' => relative_date($item['created']), + 'app' => $item['app'], + 'str_app' => sprintf( t(' from %s'), $item['app']), 'isotime' => datetime_convert('UTC', date_default_timezone_get(), $item['created'], 'c'), 'localtime' => datetime_convert('UTC', date_default_timezone_get(), $item['created'], 'r'), - 'ago' => (($item['app']) ? sprintf( t('%s from %s'),relative_date($item['created']),$item['app']) : relative_date($item['created'])), 'lock' => $lock, 'location' => $location, 'indent' => $indent, -- cgit v1.2.3