[ext manager] interpret 'off' as 'turn off extension'

This commit is contained in:
Shish 2024-02-05 23:01:22 +00:00
parent 0588f9af3e
commit 88530f5f67

View file

@ -117,7 +117,7 @@ class ExtManager extends Extension
}
/**
* @param array<string, bool> $settings
* @param array<string, mixed> $settings
*/
private function set_things(array $settings): void
{
@ -125,7 +125,7 @@ class ExtManager extends Extension
$extras = [];
foreach (ExtensionInfo::get_all_keys() as $key) {
if (!in_array($key, $core) && isset($settings["ext_$key"])) {
if (!in_array($key, $core) && isset($settings["ext_$key"]) && $settings["ext_$key"] === "on") {
$extras[] = $key;
}
}