From 88dc71270ce3e70ba8b9074681a3900cf7fbbdfd Mon Sep 17 00:00:00 2001 From: Bugo Date: Thu, 14 Mar 2024 13:10:46 +0500 Subject: [PATCH] Fix an issue with number replies --- Sources/Optimus/Sitemap.php | 6 +++--- Themes/default/languages/Optimus/.dutch-utf8.php | 2 +- Themes/default/languages/Optimus/.dutch.php | 2 +- Themes/default/languages/Optimus/.english.php | 2 +- Themes/default/languages/Optimus/.russian-utf8.php | 4 ++-- Themes/default/languages/Optimus/.russian.php | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Sources/Optimus/Sitemap.php b/Sources/Optimus/Sitemap.php index 4bbbd57..b6e76c5 100644 --- a/Sources/Optimus/Sitemap.php +++ b/Sources/Optimus/Sitemap.php @@ -8,10 +8,10 @@ * @package Optimus * @link https://custom.simplemachines.org/mods/index.php?mod=2659 * @author Bugo https://dragomano.ru/mods/optimus - * @copyright 2010-2023 Bugo + * @copyright 2010-2024 Bugo * @license https://opensource.org/licenses/artistic-license-2.0 Artistic-2.0 * - * @version 2.7.5 + * @version 2.7.6 */ if (!defined('SMF')) @@ -207,7 +207,7 @@ private static function getTopicLinks(): array FROM {db_prefix}topics AS t INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_last_msg) WHERE t.id_board IN ({array_int:open_boards}) - AND t.num_replies > {int:num_replies} + AND t.num_replies >= {int:num_replies} AND t.approved = {int:is_approved} ORDER BY t.id_topic DESC LIMIT {int:start}, {int:limit}', diff --git a/Themes/default/languages/Optimus/.dutch-utf8.php b/Themes/default/languages/Optimus/.dutch-utf8.php index 3c3d43d..fb96600 100644 --- a/Themes/default/languages/Optimus/.dutch-utf8.php +++ b/Themes/default/languages/Optimus/.dutch-utf8.php @@ -93,7 +93,7 @@ $txt['optimus_main_page_frequency_set'] = array('Direct (voortdurend)', 'Afhankelijk van de datum van het nieuwste bericht'); $txt['optimus_sitemap_boards'] = 'Neem links naar de boards op in de sitemap'; $txt['optimus_sitemap_boards_subtext'] = 'Boards die niet toegankelijk zijn voor gasten worden NIET opgenomen.'; -$txt['optimus_sitemap_topics_num_replies'] = 'Voeg alleen topics aan de sitemap toe die meer dan zoveel reacties hebben'; +$txt['optimus_sitemap_topics_num_replies'] = 'Voeg alleen topics aan de sitemap toe die meer dan zoveel reacties >='; $txt['optimus_sitemap_items_display'] = 'Maximum aantal items per pagina'; // Task Manager diff --git a/Themes/default/languages/Optimus/.dutch.php b/Themes/default/languages/Optimus/.dutch.php index 8f80034..9918ab8 100644 --- a/Themes/default/languages/Optimus/.dutch.php +++ b/Themes/default/languages/Optimus/.dutch.php @@ -93,7 +93,7 @@ $txt['optimus_main_page_frequency_set'] = array('Direct (voortdurend)', 'Afhankelijk van de datum van het nieuwste bericht'); $txt['optimus_sitemap_boards'] = 'Neem links naar de boards op in de sitemap'; $txt['optimus_sitemap_boards_subtext'] = 'Boards die niet toegankelijk zijn voor gasten worden NIET opgenomen.'; -$txt['optimus_sitemap_topics_num_replies'] = 'Voeg alleen topics aan de sitemap toe die meer dan zoveel reacties hebben'; +$txt['optimus_sitemap_topics_num_replies'] = 'Voeg alleen topics aan de sitemap toe die meer dan zoveel reacties >='; $txt['optimus_sitemap_items_display'] = 'Maximum aantal items per pagina'; // Task Manager diff --git a/Themes/default/languages/Optimus/.english.php b/Themes/default/languages/Optimus/.english.php index b11fdd9..8584988 100644 --- a/Themes/default/languages/Optimus/.english.php +++ b/Themes/default/languages/Optimus/.english.php @@ -95,7 +95,7 @@ $txt['optimus_main_page_frequency_set'] = array('Constant (always)', 'Depending on the date of the last message'); $txt['optimus_sitemap_boards'] = 'Add links to boards to the sitemap'; $txt['optimus_sitemap_boards_subtext'] = 'Boards that closed to guests will NOT be added.'; -$txt['optimus_sitemap_topics_num_replies'] = 'Add to the sitemap only those topics that have the number of replies is more than'; +$txt['optimus_sitemap_topics_num_replies'] = 'Add to the sitemap only those topics that have the number of replies >='; $txt['optimus_sitemap_items_display'] = 'Maximum number of items per page'; // Task Manager diff --git a/Themes/default/languages/Optimus/.russian-utf8.php b/Themes/default/languages/Optimus/.russian-utf8.php index af883d2..51435d0 100644 --- a/Themes/default/languages/Optimus/.russian-utf8.php +++ b/Themes/default/languages/Optimus/.russian-utf8.php @@ -10,7 +10,7 @@ $txt['optimus_title'] = 'Поисковая оптимизация'; $txt['optimus_base_title'] = 'Общие настройки'; -$txt['optimus_base_desc'] = 'Версия мода: %1$s, версия PHP: %2$s, версия %3$s: %4$s.
Обсудить баги и фичи мода можно на официальном сайте.
Вы также можете купить разработчику чашку кофе или пожертвовать любую сумму на QIWI Кошелёк.'; +$txt['optimus_base_desc'] = 'Версия мода: %1$s, версия PHP: %2$s, версия %3$s: %4$s.
Обсудить баги и фичи мода можно на официальном сайте.
Вы также можете купить разработчику чашку кофе.'; $txt['optimus_main_page'] = 'Главная страница'; $txt['optimus_base_info'] = 'Содержание мета-тега description может использоваться в сниппетах на странице результатов поиска.'; @@ -96,7 +96,7 @@ $txt['optimus_main_page_frequency_set'] = array('Постоянная (always)', 'В зависимости от даты последнего сообщения'); $txt['optimus_sitemap_boards'] = 'Добавлять в карту ссылки на разделы форума'; $txt['optimus_sitemap_boards_subtext'] = 'Разделы, закрытые для гостей, добавлены НЕ будут.'; -$txt['optimus_sitemap_topics_num_replies'] = 'Добавлять в карту только темы с количеством ответов более'; +$txt['optimus_sitemap_topics_num_replies'] = 'Добавлять в карту только темы с количеством ответов >='; $txt['optimus_sitemap_items_display'] = 'Максимальное количество элементов на странице'; // Диспетчер задач diff --git a/Themes/default/languages/Optimus/.russian.php b/Themes/default/languages/Optimus/.russian.php index e5dabcb..7611ef3 100644 --- a/Themes/default/languages/Optimus/.russian.php +++ b/Themes/default/languages/Optimus/.russian.php @@ -10,7 +10,7 @@ $txt['optimus_title'] = ' '; $txt['optimus_base_title'] = ' '; -$txt['optimus_base_desc'] = ' : %1$s, PHP: %2$s, %3$s: %4$s.
.
QIWI .'; +$txt['optimus_base_desc'] = ' : %1$s, PHP: %2$s, %3$s: %4$s.
.
.'; $txt['optimus_main_page'] = ' '; $txt['optimus_base_info'] = ' - description .'; @@ -96,7 +96,7 @@ $txt['optimus_main_page_frequency_set'] = array(' (always)', ' '); $txt['optimus_sitemap_boards'] = ' '; $txt['optimus_sitemap_boards_subtext'] = ', , .'; -$txt['optimus_sitemap_topics_num_replies'] = ' '; +$txt['optimus_sitemap_topics_num_replies'] = ' >='; $txt['optimus_sitemap_items_display'] = ' '; //