From a978805c2baff274deb486e0f772cf4efa7e6318 Mon Sep 17 00:00:00 2001 From: Vitalii Bezsheiko Date: Wed, 11 Sep 2024 10:08:42 +0300 Subject: [PATCH] pkp/pkp-lib#10328 Fix method calls --- pages/announcement/AnnouncementHandler.php | 2 +- templates/frontend/objects/announcement_full.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/announcement/AnnouncementHandler.php b/pages/announcement/AnnouncementHandler.php index 3a242ba3d3a..f9e2fda141e 100644 --- a/pages/announcement/AnnouncementHandler.php +++ b/pages/announcement/AnnouncementHandler.php @@ -83,7 +83,7 @@ public function view($args, $request) ) { $templateMgr = TemplateManager::getManager($request); $templateMgr->assign('announcement', $announcement); - $templateMgr->assign('announcementTitle', $announcement->getLocalizedTitleFull()); + $templateMgr->assign('announcementTitle', $announcement->getLocalizedData('fullTitle')); return $templateMgr->display('frontend/pages/announcement.tpl'); } $request->redirect(null, 'announcement'); diff --git a/templates/frontend/objects/announcement_full.tpl b/templates/frontend/objects/announcement_full.tpl index 425147f0e95..62ecb461d7b 100644 --- a/templates/frontend/objects/announcement_full.tpl +++ b/templates/frontend/objects/announcement_full.tpl @@ -18,7 +18,7 @@
{$announcement->getAttribute('datePosted')|date_format:$dateFormatShort}
- {if $announcement->getData('image')} + {if $announcement->getAttribute('image')}