a little clarity

This commit is contained in:
Shish 2024-02-05 23:16:31 +00:00
parent 4cd0419b03
commit 5059520935

View file

@ -125,7 +125,10 @@ class ExtManager extends Extension
$extras = [];
foreach (ExtensionInfo::get_all_keys() as $key) {
if (!in_array($key, $core) && isset($settings["ext_$key"]) && $settings["ext_$key"] === "on") {
if (in_array($key, $core)) {
continue; // core extensions are always enabled
}
if (isset($settings["ext_$key"]) && $settings["ext_$key"] === "on") {
$extras[] = $key;
}
}