Skip to content

Commit 7766dff

Browse files
committed
fix: use imported Str class in buildMailtoLink()
1 parent 7348195 commit 7766dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/misc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function readAccessible(File $file, string $title = '', string $description = ''
317317
function buildMailtoLink(string $email, string|null $subject = null, string|null $body = null): string
318318
{
319319
// Start with mailto and obfuscated email
320-
$mailto = 'mailto:' . Kirby\Toolkit\Str::encode($email);
320+
$mailto = 'mailto:' . Str::encode($email);
321321

322322
$params = [];
323323

0 commit comments

Comments
 (0)