Skip to content

Commit

Permalink
Merge pull request #1 from olimpo88/olimpo88-fix-undefined-variable
Browse files Browse the repository at this point in the history
[Fix] undefined variable $target
  • Loading branch information
olimpo88 authored Oct 30, 2023
2 parents 5492a56 + cfd2169 commit eaaea2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/site/template/aurelia/layouts/bbcode/url/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
// [url="www.kunena.org" target="_blank"]Kunena.org[/url]

// Display URL.
$rel = '';
$target = '';
if (!$this->internal) {
$rel = 'rel="nofollow noopener noreferrer"';
$target = ' target="' . $this->escape($this->target) . '"';
} else {
$rel = '';
}
?>
<a href="<?php echo $this->escape($this->url); ?>"
Expand Down

0 comments on commit eaaea2b

Please sign in to comment.