functions.php: load image from the root in handle_dice_roll_markup.

This commit is contained in:
Zankaria 2024-10-14 01:06:31 +02:00
parent 70bb9fb2a7
commit 3e857c16f6

View file

@ -2819,7 +2819,7 @@ function handle_dice_roll_markup(array $matches, ?string $img_path): string {
if ($img_path === null) { if ($img_path === null) {
$fmt = "<span>$text </span> <b>$res</b>"; $fmt = "<span>$text </span> <b>$res</b>";
} else { } else {
$fmt = "<img src='$img_path' alt='$text' title='$text' class=\"inline-dice\"/> <b>$res</b>"; $fmt = "<img src='{$config['root']}{$img_path}' alt='$text' title='$text' class=\"inline-dice\"/> <b>$res</b>";
} }
if (empty($acc)) { if (empty($acc)) {
$acc = $fmt; $acc = $fmt;