From 1a455aca27a424ac7eefdeeff9bd5eee859335d6 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 29 May 2026 21:16:44 +0000 Subject: [PATCH] Fix remove app/email_templates directory it was moved to core --- core/email_templates/app_defaults.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/email_templates/app_defaults.php b/core/email_templates/app_defaults.php index cd1bce023..d4f88e611 100644 --- a/core/email_templates/app_defaults.php +++ b/core/email_templates/app_defaults.php @@ -619,6 +619,12 @@ $sql = "update v_email_templates set template_enabled = 'true' where template_enabled is null"; $database->execute($sql); unset($sql); + + //email templates moved to core this removes the email_templates from the app directory + $app_email_templates = dirname(__DIR__, 2).'/app/email_templates'; + if (file_exists($app_email_templates)) { + recursive_delete($app_email_templates); + } } ?>