fix instances passed through env
This commit is contained in:
@ -52,7 +52,7 @@ function detect_captcha_dirs() {
|
||||
}
|
||||
|
||||
|
||||
$special_keys = ["CAPTCHA_DATASET"];
|
||||
$special_keys = ["CAPTCHA_DATASET", "INSTANCES"];
|
||||
|
||||
$output = "<?php\n // This file was generated by docker/gen_config.php\n";
|
||||
|
||||
@ -64,8 +64,11 @@ continue;
|
||||
}
|
||||
|
||||
|
||||
if($key === "CAPTCHA_DATASET") {
|
||||
$output = $output . "\tconst " . $key . " = " . type_to_string(detect_captcha_dirs()) . ";\n";
|
||||
if($key === "CAPTCHA_DATASET") {
|
||||
$output = $output . "\tconst " . $key . " = " . type_to_string(detect_captcha_dirs()) . ";\n";
|
||||
}
|
||||
if($key === "INSTANCES") {
|
||||
$output = $output . "\tconst " . $key . " = " . type_to_string(explode(',', $val)) . ";\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user