Skip to content

Commit

Permalink
Version compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Mar 4, 2024
1 parent fdb557f commit d4033c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/frontend/objects/article_summary.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion templates/frontend/pages/article.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}

<div class="container page-article">
{include file="frontend/objects/article_details.tpl"}
Expand Down

0 comments on commit d4033c8

Please sign in to comment.