From d4033c80aa41492c7a0ac496252c9848835c9187 Mon Sep 17 00:00:00 2001 From: Vitalii Bezsheiko Date: Mon, 4 Mar 2024 17:21:26 +0200 Subject: [PATCH] Version compatibility fixes --- .travis.yml | 1 + templates/frontend/objects/article_summary.tpl | 2 +- templates/frontend/pages/article.tpl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 726cf20..03dd11a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ sudo: required php: - 8.0 - 8.1.0 + - 8.2.0 env: - APPLICATION=ojs BRANCH=main TEST=mysql - APPLICATION=ojs BRANCH=main TEST=pgsql diff --git a/templates/frontend/objects/article_summary.tpl b/templates/frontend/objects/article_summary.tpl index 068db05..09ca551 100644 --- a/templates/frontend/objects/article_summary.tpl +++ b/templates/frontend/objects/article_summary.tpl @@ -87,7 +87,7 @@ {foreach from=$galleys item=galley} {if $primaryGenreIds} {assign var="file" value=$galley->getFile()} - {if !$galley->getRemoteUrl() && !($file && in_array($file->getGenreId(), $primaryGenreIds))} + {if !$galley->getData('urlRemote') && !($file && in_array($file->getGenreId(), $primaryGenreIds))} {continue} {/if} {/if} diff --git a/templates/frontend/pages/article.tpl b/templates/frontend/pages/article.tpl index bde212e..ce9429b 100644 --- a/templates/frontend/pages/article.tpl +++ b/templates/frontend/pages/article.tpl @@ -15,7 +15,7 @@ * @uses $section Section The journal section this article is assigned to * @uses $journal Journal The journal currently being viewed. *} -{include file="frontend/components/header.tpl" pageTitleTranslated=$article->getLocalizedTitle()|escape} +{include file="frontend/components/header.tpl" pageTitleTranslated=$article->getCurrentPublication()->getLocalizedFullTitle(null, 'html')|strip_unsafe_html}
{include file="frontend/objects/article_details.tpl"}