diff --git a/ground/views/user/notification.php b/ground/views/user/notification.php index d661d5b..e19b108 100644 --- a/ground/views/user/notification.php +++ b/ground/views/user/notification.php @@ -10,6 +10,11 @@ switch ($notification->type) { $point = Point::model()->getByPK($comment->parentId); print strftime('%d %b %H:%M', $notification->date).' — Новый комментарий к точке "'.$point->name.'".'; break; + case Notifications::typeNewCommentArticle: + $comment = $notification->RefComment; + $article = Article::model()->getByPK($comment->parentId); + print strftime('%d %b %H:%M', $notification->date).' — Новый комментарий к статье "'.$article->title.'".'; + break; default: break; }