Skip to content

Commit

Permalink
Bugfix: Wrong autoload file name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefferson49 committed Dec 20, 2024
1 parent ef3cd73 commit 5b81383
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions update_module_files.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
use League\Flysystem\Filesystem;
use League\Flysystem\Local\LocalFilesystemAdapter;

use Exception;

//Error message
$message = basename(__DIR__) .': ';
Expand All @@ -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;
}
Expand Down

0 comments on commit 5b81383

Please sign in to comment.