From e5ad0d09b85ecaa7b21c9e60664e9f7ab4112df7 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 7 Mar 2023 23:21:58 +0700 Subject: [PATCH] Minor adjustments #571 --- poll.php | 4 ++-- styles/templates/default/page_footer.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poll.php b/poll.php index 57069914d..ff97c4df1 100644 --- a/poll.php +++ b/poll.php @@ -26,10 +26,10 @@ $poll = new TorrentPier\Legacy\Poll(); // проверка валидности $topic_id if (!$topic_id) { - bb_die('Invalid topic_id'); + bb_die($lang['INVALID_TOPIC_ID']); } if (!$t_data = DB()->fetch_row("SELECT * FROM " . BB_TOPICS . " WHERE topic_id = $topic_id LIMIT 1")) { - bb_die('Topic not found'); + bb_die($lang['INVALID_TOPIC_ID_DB']); } // проверка прав diff --git a/styles/templates/default/page_footer.tpl b/styles/templates/default/page_footer.tpl index f72a7881c..424294d0f 100644 --- a/styles/templates/default/page_footer.tpl +++ b/styles/templates/default/page_footer.tpl @@ -55,7 +55,7 @@ +