diff options
| author | 2023-12-26 16:30:32 +0100 | |
|---|---|---|
| committer | 2023-12-26 16:30:32 +0100 | |
| commit | e9689645383d37231afa9dbbcd9bd765b804046d (patch) | |
| tree | 01e9731c9f0f14ab38869525559c3bb889ccad39 | |
| parent | bf1eda8c05c3005ddced182a59c371c26fa0d1b7 (diff) | |
Fix show_tags_max (#5978)
fix https://github.com/FreshRSS/FreshRSS/issues/5975
Regression from https://github.com/FreshRSS/FreshRSS/pull/5830
| -rw-r--r-- | app/views/index/normal.phtml | 2 | ||||
| -rw-r--r-- | app/views/index/reader.phtml | 2 | ||||
| -rw-r--r-- | config-user.default.php | 2 |
3 files changed, 3 insertions, 3 deletions
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; ?> <main id="stream" class="reader"> <h1 class="title_hidden"><?= _t('conf.reading.view.reader') ?></h1> diff --git a/config-user.default.php b/config-user.default.php index 7bf5485f1..6282fc61b 100644 --- a/config-user.default.php +++ b/config-user.default.php @@ -37,7 +37,7 @@ return array ( 'display_posts' => false, 'display_categories' => 'active', //{ active, remember, all, none } 'show_tags' => '0', - 'show_tags_max' => '7', + 'show_tags_max' => 7, 'show_author_date' => 'h', 'show_feed_name' => 'a', 'hide_read_feeds' => true, |
