From fbd58b47239037b9409966d2306e41d2e19c5573 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Tue, 23 Sep 2025 09:27:04 +0100 Subject: [PATCH] Bugfix: Change working directory back after --- functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions.php b/functions.php index 70c9117a..740a7d1b 100644 --- a/functions.php +++ b/functions.php @@ -1481,10 +1481,14 @@ function enforceAdminPermission() { } function customAction($trigger, $entity) { + $original_dir = getcwd(); // Save + chdir(dirname(__FILE__)); if (file_exists(__DIR__ . "/custom/custom_action_handler.php")) { include_once __DIR__ . "/custom/custom_action_handler.php"; } + + chdir($original_dir); // Restore original working directory } function appNotify($type, $details, $action = null, $client_id = 0, $entity_id = 0) {