diff --git a/upload/language/ru_RU/ajax.php b/upload/language/ru_RU/ajax.php index 4591c7b..2169784 100644 --- a/upload/language/ru_RU/ajax.php +++ b/upload/language/ru_RU/ajax.php @@ -53,6 +53,9 @@ 'com_vote_perm' => 'У вас нет доступа для голосования', 'com_vote_disabled' => 'Голосование для данной новости отключено', 'com_vote_success' => 'Голос успешно учтен', + 'com_edit' => 'Редактировать', + 'com_delete' => 'Удалить', + 'com_quote' => 'Цитировать', 'att_attach' => 'Закрепление', 'att_unattach' => 'Открепление', diff --git a/upload/modules/ajax/news.php b/upload/modules/ajax/news.php index 6f8b5cd..901d804 100644 --- a/upload/modules/ajax/news.php +++ b/upload/modules/ajax/news.php @@ -86,16 +86,21 @@ $act_del = $act_edt = $act_get = ''; + $data = array( + "ID" => $id, + "LNG" => $this->lng + ); + if($this->core->is_access('sys_comment_del') || $this->core->is_access('sys_comment_del_all')){ - $act_del = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-del.html", array("ID" => $id)); + $act_del = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-del.html", $data); } if($this->core->is_access('sys_comment_edt') || $this->core->is_access('sys_comment_edt_all')){ - $act_edt = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-edt.html", array("ID" => $id)); + $act_edt = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-edt.html", $data); } if($this->user->is_auth){ - $act_get = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-get.html", array("ID" => $id)); + $act_get = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-get.html", $data); } $com_data = array( diff --git a/upload/modules/news.php b/upload/modules/news.php index 787dcdd..97bd662 100644 --- a/upload/modules/news.php +++ b/upload/modules/news.php @@ -177,16 +177,21 @@ $id = intval($ar['id']); + $data = array( + "ID" => $id, + "LNG" => $this->lng + ); + if($this->core->is_access('sys_comment_del') || $this->core->is_access('sys_comment_del_all')){ - $act_del = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-del.html", array("ID" => $id)); + $act_del = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-del.html", $data); } if($this->core->is_access('sys_comment_edt') || $this->core->is_access('sys_comment_edt_all')){ - $act_edt = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-edt.html", array("ID" => $id)); + $act_edt = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-edt.html", $data); } if($this->user->is_auth){ - $act_get = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-get.html", array("ID" => $id)); + $act_get = $this->core->sp(MCR_THEME_MOD."news/comments/comment-act-get.html", $data); } $com_data = array( diff --git a/upload/themes/default/modules/news/comments/comment-act-del.html b/upload/themes/default/modules/news/comments/comment-act-del.html index 2c84f0c..30c81fc 100644 --- a/upload/themes/default/modules/news/comments/comment-act-del.html +++ b/upload/themes/default/modules/news/comments/comment-act-del.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/upload/themes/default/modules/news/comments/comment-act-edt.html b/upload/themes/default/modules/news/comments/comment-act-edt.html index 635df63..ea9fc95 100644 --- a/upload/themes/default/modules/news/comments/comment-act-edt.html +++ b/upload/themes/default/modules/news/comments/comment-act-edt.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/upload/themes/default/modules/news/comments/comment-act-get.html b/upload/themes/default/modules/news/comments/comment-act-get.html index 12751e8..634f60c 100644 --- a/upload/themes/default/modules/news/comments/comment-act-get.html +++ b/upload/themes/default/modules/news/comments/comment-act-get.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file