Skip to content

Commit

Permalink
pkp#10328 Fix method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Sep 11, 2024
1 parent 316ec82 commit 500c422
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/announcement/AnnouncementHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion templates/frontend/objects/announcement_full.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="date">
{$announcement->getAttribute('datePosted')|date_format:$dateFormatShort}
</div>
{if $announcement->getData('image')}
{if $announcement->getAttribute('image')}
<img
class="obj_announcement_full_image"
src="{$announcement->getAttribute('imageUrl')}"
Expand Down

0 comments on commit 500c422

Please sign in to comment.