Simplify include/bb2diaspora event format
This commit is contained in:
parent
0bee706e51
commit
b7a7355292
|
@ -244,16 +244,14 @@ function format_event_diaspora($ev) {
|
||||||
$o .= '**' . (($ev['summary']) ? bb2diaspora($ev['summary']) : bb2diaspora($ev['desc'])) . '**' . "\n";
|
$o .= '**' . (($ev['summary']) ? bb2diaspora($ev['summary']) : bb2diaspora($ev['desc'])) . '**' . "\n";
|
||||||
|
|
||||||
// @todo What. Is. Going. On. With. This. Useless. Ternary. Operator? - mrpetovan
|
// @todo What. Is. Going. On. With. This. Useless. Ternary. Operator? - mrpetovan
|
||||||
$o .= L10n::t('Starts:') . ' ' . '['
|
$o .= L10n::t('Starts:') . ' ' . '[' . day_translate(
|
||||||
. (($ev['adjust']) ? day_translate(Temporal::utc($ev['start'], $bd_format))
|
$ev['adjust'] ? Temporal::utc($ev['start'], $bd_format) : Temporal::utc($ev['start'], $bd_format)
|
||||||
: day_translate(Temporal::utc($ev['start'], $bd_format))
|
|
||||||
)
|
)
|
||||||
. '](' . System::baseUrl() . '/localtime/?f=&time=' . urlencode(Temporal::utc($ev['start'])) . ")\n";
|
. '](' . System::baseUrl() . '/localtime/?f=&time=' . urlencode(Temporal::utc($ev['start'])) . ")\n";
|
||||||
|
|
||||||
if (! $ev['nofinish']) {
|
if (! $ev['nofinish']) {
|
||||||
$o .= L10n::t('Finishes:') . ' ' . '['
|
$o .= L10n::t('Finishes:') . ' ' . '[' . day_translate(
|
||||||
. (($ev['adjust']) ? day_translate(Temporal::utc($ev['finish'], $bd_format))
|
$ev['adjust'] ? Temporal::utc($ev['finish'], $bd_format) : Temporal::utc($ev['finish'], $bd_format)
|
||||||
: day_translate(Temporal::utc($ev['finish'], $bd_format))
|
|
||||||
)
|
)
|
||||||
. '](' . System::baseUrl() . '/localtime/?f=&time=' . urlencode(Temporal::utc($ev['finish'])) . ")\n";
|
. '](' . System::baseUrl() . '/localtime/?f=&time=' . urlencode(Temporal::utc($ev['finish'])) . ")\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user