forked from leftypol/leftypol
functions.php: load image from the root in handle_dice_roll_markup.
This commit is contained in:
parent
70bb9fb2a7
commit
3e857c16f6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue