Skip to content

Commit

Permalink
Fix notice in OMP
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnyga committed Dec 4, 2024
1 parent d4eabbb commit 216295a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OpenGraphPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ function submissionView($hookName, $args) {
if ($contextPageHeaderLogo = $context->getLocalizedData('pageHeaderLogoImage')){
$openGraphImage = $templateMgr->getTemplateVars('publicFilesDir') . "/" . $contextPageHeaderLogo['uploadName'];
}
if ($issue && $issueCoverImage = $issue->getLocalizedCoverImageUrl()){

if (isset($issue) && $issueCoverImage = $issue->getLocalizedCoverImageUrl()){
$openGraphImage = $issueCoverImage;
}

if ($submissionCoverImage = $submission->getCurrentPublication()->getLocalizedCoverImageUrl($submission->getData('contextId'))){
$openGraphImage = $submissionCoverImage;
}
Expand Down

0 comments on commit 216295a

Please sign in to comment.