Skip to content

Commit

Permalink
Open module links in new window. Fix #2223.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimisgold committed Sep 4, 2024
1 parent 24e726e commit a8b788f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/view/omeka/admin/module/browse.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ $this->plugin('formRow')->setPartial(null);
<?php if ($name = $module->getName()): ?>
<span class="module-name">
<?php if ($moduleLink = $module->getIni('module_link')): ?>
<?php echo $this->hyperlink($name, $moduleLink); ?>
<?php echo $this->hyperlink($name, $moduleLink, ['target' => '_blank']); ?>
<?php else: ?>
<?php echo $name; ?>
<?php endif; ?>
Expand All @@ -41,7 +41,7 @@ $this->plugin('formRow')->setPartial(null);
<?php if ($author = $module->getIni('author')): ?>
<span class="module-author">
<?php if ($moduleLink = $module->getIni('author_link')): ?>
<?php echo sprintf($translate('by %s'), $this->hyperlink($author, $module->getIni('author_link'))); ?>
<?php echo sprintf($translate('by %s'), $this->hyperlink($author, $module->getIni('author_link'), ['target' => "_blank"])); ?>
<?php else: ?>
<?php echo sprintf($translate('by %s'), $author); ?>
<?php endif; ?>
Expand Down

0 comments on commit a8b788f

Please sign in to comment.