From 100d86dfbdd2433cacd3b76e1d712e365b921fb5 Mon Sep 17 00:00:00 2001 From: Noz Date: Tue, 20 Feb 2024 22:04:43 -0500 Subject: [PATCH] fix installer form POSTs to the wrong location if the booru is in a sub directory --- core/install.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/install.php b/core/install.php index 4ba4e666..d5326dbe 100644 --- a/core/install.php +++ b/core/install.php @@ -4,6 +4,8 @@ declare(strict_types=1); namespace Shimmie2; +require_once "core/urls.php"; + /** * Shimmie Installer * @@ -126,13 +128,15 @@ function ask_questions(): void $warn_msg = $warnings ? "

Warnings

".implode("\n

", $warnings) : ""; $err_msg = $errors ? "

Errors

".implode("\n

", $errors) : ""; + $data_href = get_base_href(); + die_nicely( "Install Options", << +

Type: