Fix infinite loop, adjust maps shop language

This commit is contained in:
Sky Johnson 2024-12-19 08:51:34 -06:00
parent 9d28a9b380
commit e094bb86cd
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -564,7 +564,7 @@ function is_htmx(): bool
*/ */
function is_post(): bool function is_post(): bool
{ {
return is_post(); return $_SERVER['REQUEST_METHOD'] === 'POST';
} }
/** /**