mirror of
https://github.com/friendica/friendica
synced 2024-11-18 13:03:41 +00:00
Fixes "E_WARNING: Undefined variable $subject"
This commit is contained in:
parent
c1d74db7c9
commit
e718d39ef0
1 changed files with 2 additions and 2 deletions
|
@ -783,6 +783,8 @@ class Notify extends BaseRepository
|
||||||
$subject = $l10n->t('%s %s shared a new post', $subjectPrefix, $contact['name']);
|
$subject = $l10n->t('%s %s shared a new post', $subjectPrefix, $contact['name']);
|
||||||
} else {
|
} else {
|
||||||
$params['type'] = Model\Notification\Type::COMMENT;
|
$params['type'] = Model\Notification\Type::COMMENT;
|
||||||
|
$subject = $l10n->t('%1$s Comment to conversation #%2$d by %3$s', $subjectPrefix, $item['parent'], $contact['name']);
|
||||||
|
|
||||||
if ($params['verb'] = Activity::LIKE) {
|
if ($params['verb'] = Activity::LIKE) {
|
||||||
switch ($Notification->type) {
|
switch ($Notification->type) {
|
||||||
case Model\Post\UserNotification::TYPE_DIRECT_COMMENT:
|
case Model\Post\UserNotification::TYPE_DIRECT_COMMENT:
|
||||||
|
@ -792,8 +794,6 @@ class Notify extends BaseRepository
|
||||||
$subject = $l10n->t('%1$s %2$s liked your comment on #%3$d', $subjectPrefix, $contact['name'], $item['parent']);
|
$subject = $l10n->t('%1$s %2$s liked your comment on #%3$d', $subjectPrefix, $contact['name'], $item['parent']);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$subject = $l10n->t('%1$s Comment to conversation #%2$d by %3$s', $subjectPrefix, $item['parent'], $contact['name']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue