From 5b81383561f7025783a4a1c21ea483cdb46d7e51 Mon Sep 17 00:00:00 2001 From: Jefferson49 <81484983+Jefferson49@users.noreply.github.com> Date: Fri, 20 Dec 2024 18:31:39 +0100 Subject: [PATCH] Bugfix: Wrong autoload file name --- update_module_files.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/update_module_files.php b/update_module_files.php index 9c8c796..33f2263 100644 --- a/update_module_files.php +++ b/update_module_files.php @@ -30,7 +30,6 @@ use League\Flysystem\Filesystem; use League\Flysystem\Local\LocalFilesystemAdapter; -use Exception; //Error message $message = basename(__DIR__) .': '; @@ -48,17 +47,17 @@ $new_path = 'jefferson49'; try { - if ($file_system->fileExists($old_path . '/webtrees-common/autoload_webtrees_common.php')) { + if ($file_system->fileExists($old_path . '/webtrees-common/autoload.php')) { $file_system->move($old_path, $new_path); } } -catch (Exception $e) { +catch (\Exception $e) { FlashMessages::addMessage($message); return false; } //Check accesibility of common library -if (!$file_system->fileExists($new_path . '/webtrees-common/autoload_webtrees_common.php')) { +if (!$file_system->fileExists($new_path . '/webtrees-common/autoload.php')) { FlashMessages::addMessage($message); return false; }