fix(plugins): el cargador ignora una carpeta con custom-schema pero sin schema
Tras un descarte del sync (que no mueve los custom-schema.ini.php, excluidos del manifest) puede quedar una carpeta de plugin solo con su overlay. El cargador hacia foreach sobre un schema inexistente y emitia 'Undefined array key' en cada peticion, visible en el HTML con display_errors=1. Sin schema.ini.php no hay plugin: la carpeta se ignora. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HPL66q9F33YZxbLPUT7KW8
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
e198bd780a
commit
b1c9ffa461
@@ -16,7 +16,10 @@ function getSchemaPlugins($force = false){
|
|||||||
}
|
}
|
||||||
|
|
||||||
$customSchemaFile = $fullPath."/custom-schema.ini.php";
|
$customSchemaFile = $fullPath."/custom-schema.ini.php";
|
||||||
if (file_exists($customSchemaFile)){
|
// Sin schema.ini.php no hay plugin: un custom-schema huerfano (p.ej. tras
|
||||||
|
// un descarte del sync, que no mueve los custom-schema) se ignora en vez
|
||||||
|
// de avisar en cada peticion.
|
||||||
|
if (isset($schemaPlugins[$dirname]) && file_exists($customSchemaFile)){
|
||||||
$customSchema = loadINI($customSchemaFile);
|
$customSchema = loadINI($customSchemaFile);
|
||||||
$exclude = array("version", "name", "description");
|
$exclude = array("version", "name", "description");
|
||||||
foreach ($exclude as $e):
|
foreach ($exclude as $e):
|
||||||
|
|||||||
Reference in New Issue
Block a user