From 86f48db4a7a422602407fc488b434bbfa3e81b24 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 6 Jun 2024 22:06:12 +0200 Subject: [PATCH] Fix broken cron regression 6541 (#6548) Fix https://github.com/FreshRSS/FreshRSS/issues/6547 Regression https://github.com/FreshRSS/FreshRSS/pull/6541 --- app/Models/View.php | 4 ++-- app/views/index/rss.phtml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Models/View.php b/app/Models/View.php index 4823283d3..293bc71ac 100644 --- a/app/Models/View.php +++ b/app/Models/View.php @@ -106,8 +106,8 @@ class FreshRSS_View extends Minz_View { public string $rss_url = ''; public string $rss_base = ''; public bool $internal_rendering = false; - public string $description; - public string $image_url; + public string $description = ''; + public string $image_url = ''; // Content preview public string $fatalError; diff --git a/app/views/index/rss.phtml b/app/views/index/rss.phtml index d37701bbd..9b87f0a77 100644 --- a/app/views/index/rss.phtml +++ b/app/views/index/rss.phtml @@ -9,15 +9,17 @@ <?= $this->rss_title ?> html_url ?> - description ?> + description ?: _t('index.feed.rss_of', $this->rss_title) ?> GMT + image_url !== ''): ?> image_url ?> <?= $this->rss_title ?> html_url ?> + entries as $item) { if (!$this->internal_rendering) {