fix installer
form POSTs to the wrong location if the booru is in a sub directory
This commit is contained in:
parent
343a858898
commit
100d86dfbd
1 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,8 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Shimmie2;
|
namespace Shimmie2;
|
||||||
|
|
||||||
|
require_once "core/urls.php";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shimmie Installer
|
* Shimmie Installer
|
||||||
*
|
*
|
||||||
|
@ -126,13 +128,15 @@ function ask_questions(): void
|
||||||
$warn_msg = $warnings ? "<h3>Warnings</h3>".implode("\n<p>", $warnings) : "";
|
$warn_msg = $warnings ? "<h3>Warnings</h3>".implode("\n<p>", $warnings) : "";
|
||||||
$err_msg = $errors ? "<h3>Errors</h3>".implode("\n<p>", $errors) : "";
|
$err_msg = $errors ? "<h3>Errors</h3>".implode("\n<p>", $errors) : "";
|
||||||
|
|
||||||
|
$data_href = get_base_href();
|
||||||
|
|
||||||
die_nicely(
|
die_nicely(
|
||||||
"Install Options",
|
"Install Options",
|
||||||
<<<EOD
|
<<<EOD
|
||||||
$warn_msg
|
$warn_msg
|
||||||
$err_msg
|
$err_msg
|
||||||
|
|
||||||
<form action="index.php" method="POST">
|
<form action="$data_href/index.php" method="POST">
|
||||||
<table class='form' style="margin: 1em auto;">
|
<table class='form' style="margin: 1em auto;">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Type:</th>
|
<th>Type:</th>
|
||||||
|
|
Reference in a new issue