From fb23323939495233abac9a690955532beeaec72f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 23 Dec 2024 16:30:47 +0100 Subject: [PATCH] Re-add page title to RSS feeds ref https://www.woltlab.com/community/thread/310335-forenname-nicht-mehr-im-titel-des-feeds-vorhanden/ --- .../files/lib/page/ArticleRssFeedPage.class.php | 12 ++++++++++-- .../files/lib/page/NotificationRssFeedPage.class.php | 6 +++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/page/ArticleRssFeedPage.class.php b/wcfsetup/install/files/lib/page/ArticleRssFeedPage.class.php index a6a38f21cd..29ae6c5485 100644 --- a/wcfsetup/install/files/lib/page/ArticleRssFeedPage.class.php +++ b/wcfsetup/install/files/lib/page/ArticleRssFeedPage.class.php @@ -65,10 +65,18 @@ class ArticleRssFeedPage extends AbstractRssFeedPage $feed = new RssFeed(); $channel = $this->getDefaultChannel(); if (isset($this->category)) { - $channel->title($this->category->getTitle()); + $channel->title(\sprintf( + '%s - %s', + $this->category->getTitle(), + WCF::getLanguage()->get(\PAGE_TITLE) + )); $channel->description($this->category->getDecoratedObject()->getDescription()); } else { - $channel->title(WCF::getLanguage()->get('wcf.article.articles')); + $channel->title(\sprintf( + '%s - %s', + WCF::getLanguage()->get('wcf.article.articles'), + WCF::getLanguage()->get(\PAGE_TITLE) + )); } if ($this->articles->valid()) { diff --git a/wcfsetup/install/files/lib/page/NotificationRssFeedPage.class.php b/wcfsetup/install/files/lib/page/NotificationRssFeedPage.class.php index e29f856e52..393f381380 100644 --- a/wcfsetup/install/files/lib/page/NotificationRssFeedPage.class.php +++ b/wcfsetup/install/files/lib/page/NotificationRssFeedPage.class.php @@ -34,7 +34,11 @@ class NotificationRssFeedPage extends AbstractRssFeedPage { $feed = new RssFeed(); $channel = $this->getDefaultChannel(); - $channel->title(WCF::getLanguage()->get('wcf.user.menu.community.notification')); + $channel->title(\sprintf( + '%s - %s', + WCF::getLanguage()->get('wcf.user.menu.community.notification'), + WCF::getLanguage()->get(\PAGE_TITLE) + )); $feed->channel($channel); $notifications = UserNotificationHandler::getInstance()->getNotifications(20); -- 2.20.1