From 262e961bb0362e95de028d3bf995717be1ffea26 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Tue, 1 Feb 2022 11:40:53 +0000 Subject: Alternative fix for #4179 --- index.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index 2c897de22b..ffe24a815e 100644 --- a/index.php +++ b/index.php @@ -35,6 +35,13 @@ if (PHP_SAPI === 'cli-server') { } } +// @see https://github.com/briannesbitt/Carbon/issues/2536 +$file = '/vendor/symfony/translation/TranslatorInterface.php'; +if (file_exists(__DIR__ . $file) && !unlink(__DIR__ . $file)) { + echo 'Please delete the file ' . $file; + return; +} + $webtrees = new Webtrees(); $webtrees->bootstrap(); -- cgit v1.3