From: Michael Vogel Date: Wed, 18 Oct 2017 16:57:58 +0000 (+0200) Subject: Merge pull request #3797 from rabuzarus/20171015_-_duplicate_event X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d60f96f0e17d751d614af28e029546d1ff003ee6;p=friendica.git Merge pull request #3797 from rabuzarus/20171015_-_duplicate_event add event action: duplicate events --- d60f96f0e17d751d614af28e029546d1ff003ee6 diff --cc include/event.php index ca957d0482,bb05027a96..88e559a7f3 --- a/include/event.php +++ b/include/event.php @@@ -624,9 -588,10 +624,10 @@@ function process_events($arr) $last_date = $d; // Show edit and drop actions only if the user is the owner of the event and the event - // is a real event (no bithdays) + // is a real event (no bithdays). if (local_user() && local_user() == $rr['uid'] && $rr['type'] == 'event') { $edit = ((! $rr['cid']) ? array(System::baseUrl() . '/events/event/' . $rr['id'], t('Edit event'), '', '') : null); + $copy = ((! $rr['cid']) ? array(System::baseUrl() . '/events/copy/' . $rr['id'], t('Duplicate event'), '', '') : null); $drop = array(System::baseUrl() . '/events/drop/' . $rr['id'], t('Delete event'), '', ''); }