From b7a735529212a1305bdfa74b874cef9789d01a2d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 26 Jan 2018 19:41:40 -0500 Subject: [PATCH] Simplify include/bb2diaspora event format --- include/bb2diaspora.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index 5808e64ed4..a7ebc4e0f9 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -244,16 +244,14 @@ function format_event_diaspora($ev) { $o .= '**' . (($ev['summary']) ? bb2diaspora($ev['summary']) : bb2diaspora($ev['desc'])) . '**' . "\n"; // @todo What. Is. Going. On. With. This. Useless. Ternary. Operator? - mrpetovan - $o .= L10n::t('Starts:') . ' ' . '[' - . (($ev['adjust']) ? day_translate(Temporal::utc($ev['start'], $bd_format)) - : day_translate(Temporal::utc($ev['start'], $bd_format)) + $o .= L10n::t('Starts:') . ' ' . '[' . day_translate( + $ev['adjust'] ? Temporal::utc($ev['start'], $bd_format) : Temporal::utc($ev['start'], $bd_format) ) . '](' . System::baseUrl() . '/localtime/?f=&time=' . urlencode(Temporal::utc($ev['start'])) . ")\n"; if (! $ev['nofinish']) { - $o .= L10n::t('Finishes:') . ' ' . '[' - . (($ev['adjust']) ? day_translate(Temporal::utc($ev['finish'], $bd_format)) - : day_translate(Temporal::utc($ev['finish'], $bd_format)) + $o .= L10n::t('Finishes:') . ' ' . '[' . day_translate( + $ev['adjust'] ? Temporal::utc($ev['finish'], $bd_format) : Temporal::utc($ev['finish'], $bd_format) ) . '](' . System::baseUrl() . '/localtime/?f=&time=' . urlencode(Temporal::utc($ev['finish'])) . ")\n"; } -- 2.39.5