From e9689645383d37231afa9dbbcd9bd765b804046d Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 26 Dec 2023 16:30:32 +0100 Subject: Fix show_tags_max (#5978) fix https://github.com/FreshRSS/FreshRSS/issues/5975 Regression from https://github.com/FreshRSS/FreshRSS/pull/5830 --- app/views/index/normal.phtml | 2 +- app/views/index/reader.phtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views/index') diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 42c2e0072..26e38dc91 100644 --- a/app/views/index/normal.phtml +++ b/app/views/index/normal.phtml @@ -14,7 +14,7 @@ $display_others = true; $hidePosts = !FreshRSS_Context::userConf()->display_posts; $lazyload = FreshRSS_Context::userConf()->lazyload; $content_width = FreshRSS_Context::userConf()->content_width; -$MAX_TAGS_DISPLAYED = FreshRSS_Context::userConf()->show_tags_max; +$MAX_TAGS_DISPLAYED = (int)FreshRSS_Context::userConf()->show_tags_max; $useKeepUnreadImportant = !FreshRSS_Context::isImportant() && !FreshRSS_Context::isFeed(); $today = @strtotime('today'); diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml index f2d7ab46b..af51933cf 100644 --- a/app/views/index/reader.phtml +++ b/app/views/index/reader.phtml @@ -10,7 +10,7 @@ call_user_func($this->callbackBeforeEntries, $this); $lazyload = FreshRSS_Context::userConf()->lazyload; $content_width = FreshRSS_Context::userConf()->content_width; -$MAX_TAGS_DISPLAYED = FreshRSS_Context::userConf()->show_tags_max; +$MAX_TAGS_DISPLAYED = (int)FreshRSS_Context::userConf()->show_tags_max; ?>

-- cgit v1.2.3