Skip to content

Commit

Permalink
use more appropriate static_url()
Browse files Browse the repository at this point in the history
  • Loading branch information
Boldewyn committed Mar 1, 2024
1 parent 233ce10 commit aafb1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codepoints.net/lib/Unicode/CodepointInfo/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __invoke(Codepoint $codepoint) : callable {
if (in_array($codepoint->gc, ['Cn', 'Co', 'Cs', 'Xx'])) {
/* special control characters and non-existing code points: Use
* our icon */
$url = url('/static/images/icon.svg').'#icon';
$url = static_url('images/icon.svg').'#icon';
return sprintf($template, $width, $width, $codepoint->gc, $alt, '', $url);
}
$id = get_printable_codepoint($codepoint->id, $codepoint->gc);
Expand Down

0 comments on commit aafb1dc

Please sign in to comment.