Skip to content

Commit

Permalink
Generalized update module files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefferson49 committed Dec 20, 2024
1 parent 7c48a6e commit 13a356d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions update_module_files.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
* Copyright (C) 2024 webtrees development team
* <http://webtrees.net>
*
* Fancy Research Links (webtrees custom module):
* Copyright (C) 2022 Carmen Just
* <https://justcarmen.nl>
*
* OAuth2Client (webtrees custom module):
* Copyright (C) 2024 Markus Hemprich
* <http://www.familienforschung-hemprich.de>
*
Expand All @@ -25,22 +20,21 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*
* Update module files for: OAuth2-Client
* Update custom module files, e.g. to upgrade to a new version
*
*/

declare(strict_types=1);

namespace Jefferson49\Webtrees\Module\OAuth2Client;

use Fisharebest\Webtrees\FlashMessages;
use League\Flysystem\Filesystem;
use League\Flysystem\Local\LocalFilesystemAdapter;

use Exception;

//Error message
$message = 'OAuth2 Client: An error occured during updating the custom module files to a new version. Try to reload webtrees. If the error does not disappear, delete the custom module folder and re-install the new version from scratch.';
$message = basename(__DIR__) .': ';
$message .= 'An error occured during updating the custom module files to a new version. Try to reload webtrees. If the error does not disappear, delete the custom module folder and re-install the new version from scratch.';

//Create filesystem
$file_system = new Filesystem(new LocalFilesystemAdapter(__DIR__ . '/vendor'));
Expand Down

0 comments on commit 13a356d

Please sign in to comment.