pack.php: Add specifying the theme to build into the Pepperminty Wiki instance via an environment variable

This commit is contained in:
Starbeamrainbowlabs 2020-02-03 20:12:12 +00:00
parent 83bf9acd86
commit 7a12d6c39e
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ if(!isset($paths)) {
$paths = new stdClass();
$paths->extra_data_directory = "build/._extra_data";
}
$theme_id = "default";
$theme_id = $_ENV["PEPPERMINT_THEME"] ?? "default";
if(isset($_GET["determine-latest-version"])) {
header("content-type: application/json");