Skip to content

Commit 5b81383

Browse files
committed
Bugfix: Wrong autoload file name
1 parent ef3cd73 commit 5b81383

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

update_module_files.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
use League\Flysystem\Filesystem;
3131
use League\Flysystem\Local\LocalFilesystemAdapter;
3232

33-
use Exception;
3433

3534
//Error message
3635
$message = basename(__DIR__) .': ';
@@ -48,17 +47,17 @@
4847
$new_path = 'jefferson49';
4948

5049
try {
51-
if ($file_system->fileExists($old_path . '/webtrees-common/autoload_webtrees_common.php')) {
50+
if ($file_system->fileExists($old_path . '/webtrees-common/autoload.php')) {
5251
$file_system->move($old_path, $new_path);
5352
}
5453
}
55-
catch (Exception $e) {
54+
catch (\Exception $e) {
5655
FlashMessages::addMessage($message);
5756
return false;
5857
}
5958

6059
//Check accesibility of common library
61-
if (!$file_system->fileExists($new_path . '/webtrees-common/autoload_webtrees_common.php')) {
60+
if (!$file_system->fileExists($new_path . '/webtrees-common/autoload.php')) {
6261
FlashMessages::addMessage($message);
6362
return false;
6463
}

0 commit comments

Comments
 (0)