From: Marcel Werk Date: Mon, 23 Dec 2024 15:30:47 +0000 (+0100) Subject: Re-add page title to RSS feeds X-Git-Tag: 6.1.3_dev_1~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fb23323939495233abac9a690955532beeaec72f;p=GitHub%2FWoltLab%2FWCF.git Re-add page title to RSS feeds ref https://www.woltlab.com/community/thread/310335-forenname-nicht-mehr-im-titel-des-feeds-vorhanden/ --- 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);