From 921cb5205edfda7ac2a6541af642193cd7acabcc Mon Sep 17 00:00:00 2001 From: Roman Zimmermann Date: Fri, 9 May 2025 11:55:50 +0200 Subject: [PATCH] fix(wysiwyg): Avoid notice for pseudo-themes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wysiwyg uses names like wysiwyg_default_theme for referencing special themes. Those don’t actually exist and cause notices. --- modules/wysiwyg.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/wysiwyg.php b/modules/wysiwyg.php index 6a29353..e4b4845 100644 --- a/modules/wysiwyg.php +++ b/modules/wysiwyg.php @@ -12,6 +12,9 @@ */ function _d7csp_get_base_themes(string $theme): array { $themes = list_themes(); + if (!isset($themes[$theme])) { + return []; + } $result = [$theme]; while ($base_theme = $themes[$theme]->base_theme ?? NULL) { $theme = $base_theme;