diff --git a/src/Model/Event.php b/src/Model/Event.php index 145632fdfc..6f8ed123c1 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -617,10 +617,8 @@ class Event } $author_link = $event['author-link']; - $plink = $event['plink']; $event['author-link'] = Contact::magicLink($author_link); - $event['plink'] = Contact::magicLink($author_link, $plink); $html = self::getHTML($event); $event['summary'] = BBCode::convert(Strings::escapeHtml($event['summary'])); @@ -640,7 +638,7 @@ class Event 'is_first' => $is_first, 'item' => $event, 'html' => $html, - 'plink' => [$event['plink'], DI::l10n()->t('link to source'), '', ''], + 'plink' => Item::getPlink($event), ]; } diff --git a/view/templates/event.tpl b/view/templates/event.tpl index f318c909ba..62317519b0 100644 --- a/view/templates/event.tpl +++ b/view/templates/event.tpl @@ -4,7 +4,7 @@ {{if $event.item.author_name}}{{$event.item.author_name}}{{/if}} {{$event.html nofilter}} - {{if $event.item.plink}}{{/if}} + {{if $event.plink.orig}}{{/if}} {{if $event.edit}}{{/if}} {{if $event.copy}}{{/if}} {{if $event.drop}}{{/if}} diff --git a/view/theme/frio/templates/event.tpl b/view/theme/frio/templates/event.tpl index 9a6f747e57..5dcc7e6f3b 100644 --- a/view/theme/frio/templates/event.tpl +++ b/view/theme/frio/templates/event.tpl @@ -18,7 +18,7 @@ {{if $event.edit}}{{/if}} {{if $event.copy}}{{/if}} {{if $event.drop}}{{/if}} - {{if $event.item.plink}}{{/if}} + {{if $event.plink.orig}}{{/if}}