From e094bb86cd4cc54dfd5327886752c7d7417482e1 Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Thu, 19 Dec 2024 08:51:34 -0600 Subject: [PATCH] Fix infinite loop, adjust maps shop language --- src/actions/towns.php | 2 +- src/lib.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/towns.php b/src/actions/towns.php index 0be19ce..9e80384 100644 --- a/src/actions/towns.php +++ b/src/actions/towns.php @@ -342,7 +342,7 @@ function buy_map(int $id): string $page = <<
- You may return to town, store, or use the direction buttons on the left to start exploring. + You may return to town, map shop, or use the direction buttons on the left to start exploring. HTML; } elseif (is_post() && !$_POST['buy']) { redirect('/maps'); diff --git a/src/lib.php b/src/lib.php index 0e52ed6..fa96bc7 100644 --- a/src/lib.php +++ b/src/lib.php @@ -564,7 +564,7 @@ function is_htmx(): bool */ function is_post(): bool { - return is_post(); + return $_SERVER['REQUEST_METHOD'] === 'POST'; } /**