From aafb1dc072bb493e6df75295da5c66840fff1128 Mon Sep 17 00:00:00 2001 From: Manuel Strehl Date: Fri, 1 Mar 2024 01:14:59 +0100 Subject: [PATCH] use more appropriate static_url() --- codepoints.net/lib/Unicode/CodepointInfo/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codepoints.net/lib/Unicode/CodepointInfo/Image.php b/codepoints.net/lib/Unicode/CodepointInfo/Image.php index 45778ce8..3df38c2e 100644 --- a/codepoints.net/lib/Unicode/CodepointInfo/Image.php +++ b/codepoints.net/lib/Unicode/CodepointInfo/Image.php @@ -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);