diff --git a/plugins/generic/announcementFeed/templates/rss2.tpl b/plugins/generic/announcementFeed/templates/rss2.tpl index 4bbb7a84f5b..ba2e5c25c3a 100644 --- a/plugins/generic/announcementFeed/templates/rss2.tpl +++ b/plugins/generic/announcementFeed/templates/rss2.tpl @@ -1,8 +1,8 @@ {** * plugins/generic/announcementFeed/templates/rss2.tpl * - * Copyright (c) 2014-2021 Simon Fraser University - * Copyright (c) 2003-2021 John Willinsky + * Copyright (c) 2014-2025 Simon Fraser University + * Copyright (c) 2003-2025 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * RSS 2 feed template @@ -34,13 +34,13 @@ {foreach from=$announcements item=announcement} {* required elements *} - {$announcement->getLocalizedTitleFull()|strip|escape:"html"} - {url page="announcement" op="view" path=$announcement->getId()} - {$announcement->getLocalizedDescription()|strip|escape:"html"} + {$announcement->getLocalizedData('fullTitle')|strip|escape:"html"} + {url page="announcement" op="view" path=$announcement->id} + {$announcement->getLocalizedData('description')|strip|escape:"html"} {* optional elements *} - {url page="announcement" op="view" path=$announcement->getId()} - {capture assign="datePosted"}{$announcement->getDatetimePosted()|strtotime}{/capture} + {url page="announcement" op="view" path=$announcement->id} + {capture assign="datePosted"}{$announcement->datePosted|strtotime}{/capture} {$smarty.const.DATE_RSS|date:$datePosted} {/foreach}