ADD уведомления на добаление комментария к статье
This commit is contained in:
parent
12876c8f56
commit
9e84cd63eb
|
|
@ -10,6 +10,11 @@ switch ($notification->type) {
|
||||||
$point = Point::model()->getByPK($comment->parentId);
|
$point = Point::model()->getByPK($comment->parentId);
|
||||||
print strftime('%d %b %H:%M', $notification->date).' — Новый <a href="/point/'.$point->id.'#comment'.$comment->id.'">комментарий</a> к точке <a href="/point/'.$point->id.'">"'.$point->name.'"</a>.';
|
print strftime('%d %b %H:%M', $notification->date).' — Новый <a href="/point/'.$point->id.'#comment'.$comment->id.'">комментарий</a> к точке <a href="/point/'.$point->id.'">"'.$point->name.'"</a>.';
|
||||||
break;
|
break;
|
||||||
|
case Notifications::typeNewCommentArticle:
|
||||||
|
$comment = $notification->RefComment;
|
||||||
|
$article = Article::model()->getByPK($comment->parentId);
|
||||||
|
print strftime('%d %b %H:%M', $notification->date).' — Новый <a href="/article/'.$article->id.'#comment'.$comment->id.'">комментарий</a> к статье <a href="/article/'.$article->id.'">"'.$article->title.'"</a>.';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue