summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 7 insertions, 0 deletions
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();