Skip to content

Commit

Permalink
pkp/pkp-lib#7330 consider version in the HTML image download URL
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana authored and asmecher committed Sep 2, 2022
1 parent a26111a commit 06873b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ protected function _getHTMLContents($request, $galley) {
if (!$referredArticle || $referredArticle->getId() != $submissionId) {
$referredArticle = $submissionDao->getById($submissionId);
}
$fileUrl = $request->url(null, 'article', 'download', [$referredArticle->getBestId(), $galley->getBestGalleyId(), $embeddableFile->getId(), $embeddableFile->getLocalizedData('name')], $params);
$fileUrl = $request->url(null, 'article', 'download', [$referredArticle->getBestId(), 'version', $galley->getData('publicationId'), $galley->getBestGalleyId(), $embeddableFile->getId(), $embeddableFile->getLocalizedData('name')], $params);
$pattern = preg_quote(rawurlencode($embeddableFile->getLocalizedData('name')));

$contents = preg_replace(
Expand Down

0 comments on commit 06873b2

Please sign in to comment.