1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

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

View file

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