From bbf81417419232e1db1a7b50c144030655ff44e8 Mon Sep 17 00:00:00 2001 From: Repellent Date: Wed, 31 Dec 2025 23:41:09 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=83=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20(=D1=87=D0=B8=D1=81=D0=BB=D0=BE)=20-=20=D0=BB?= =?UTF-8?q?=D0=B8=D0=BC=D0=B8=D1=82=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B0=D1=80=D0=B8=D0=B5=D0=B2=20=D0=B2=20=D0=B2=D0=B5?= =?UTF-8?q?=D1=82=D0=BA=D0=B5=20=20=D1=81=D0=B0=D0=BC=20=D0=B2=D1=8B=D0=B2?= =?UTF-8?q?=D0=BE=D0=B4=20=D0=B5=D1=89=D0=B5=20=D0=BD=D0=B5=20=D1=81=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=B0=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class/comment.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/class/comment.php b/class/comment.php index 33bfb51..3c067c5 100644 --- a/class/comment.php +++ b/class/comment.php @@ -1355,6 +1355,7 @@ function commentAdminSettingsEdit($tpl_dir) $post_use_antispam = $_POST['comment_use_antispam'] ?? 0; $post_use_page_nav = $_POST['comment_use_page_nav'] ?? 0; $post_page_nav_count = $_POST['comment_page_nav_count'] ?? 0; + $post_ajax_replies_limit = $_POST['comment_ajax_replies_limit'] ?? 5; // Настройки рейтинга и файлов $post_allow_files = $_POST['comment_allow_files'] ?? 0; @@ -1363,6 +1364,7 @@ function commentAdminSettingsEdit($tpl_dir) /* НОВОЕ: Настройки расширений и максимального размера файла */ $post_allowed_extensions = $_POST['comment_allowed_extensions'] ?? 'jpg,jpeg,png,gif'; $post_max_file_size = $_POST['comment_max_file_size'] ?? 2048; + $post_max_files = $_POST['comment_max_files'] ?? 5; $post_rating_type = $_POST['comment_rating_type'] ?? 0; $post_show_user_rating = $_POST['comment_show_user_rating'] ?? 0; @@ -1409,13 +1411,12 @@ function commentAdminSettingsEdit($tpl_dir) comment_use_antispam = '" . (int)$post_use_antispam . "', comment_use_page_nav = '" . (int)$post_use_page_nav . "', comment_page_nav_count = '" . (int)$post_page_nav_count . "', + comment_ajax_replies_limit = '" . (int)$post_ajax_replies_limit . "', comment_allow_files = '" . (int)$post_allow_files . "', comment_allow_files_anon = '" . (int)$post_allow_files_anon . "', - - /* СОХРАНЕНИЕ НОВЫХ ПОЛЕЙ */ comment_allowed_extensions = '" . addslashes($clean_extensions) . "', comment_max_file_size = '" . (int)$post_max_file_size . "', - + comment_max_files = '" . (int)$post_max_files . "', comment_rating_type = '" . (int)$post_rating_type . "', comment_show_user_rating = '" . (int)$post_show_user_rating . "', comment_show_user_rating_replies = '" . (int)$post_show_user_rating_replies . "',