Fix infinite loop, adjust maps shop language
This commit is contained in:
parent
9d28a9b380
commit
e094bb86cd
|
@ -342,7 +342,7 @@ function buy_map(int $id): string
|
||||||
|
|
||||||
$page = <<<HTML
|
$page = <<<HTML
|
||||||
Thank you for purchasing this map.<br><br>
|
Thank you for purchasing this map.<br><br>
|
||||||
You may return to <a hx-get="/" hx-target="#middle">town</a>, <a hx-get="/maps" hx-target="#middle">store</a>, or use the direction buttons on the left to start exploring.
|
You may return to <a hx-get="/" hx-target="#middle">town</a>, <a hx-get="/maps" hx-target="#middle">map shop</a>, or use the direction buttons on the left to start exploring.
|
||||||
HTML;
|
HTML;
|
||||||
} elseif (is_post() && !$_POST['buy']) {
|
} elseif (is_post() && !$_POST['buy']) {
|
||||||
redirect('/maps');
|
redirect('/maps');
|
||||||
|
|
|
@ -564,7 +564,7 @@ function is_htmx(): bool
|
||||||
*/
|
*/
|
||||||
function is_post(): bool
|
function is_post(): bool
|
||||||
{
|
{
|
||||||
return is_post();
|
return $_SERVER['REQUEST_METHOD'] === 'POST';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user