summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-02-01 11:40:53 +0000
committerGreg Roach <greg@subaqua.co.uk>2022-02-01 11:40:53 +0000
commit262e961bb0362e95de028d3bf995717be1ffea26 (patch)
tree30bd5b0063b07cd1027295780eaae3de7ae826f3 /index.php
parent37431c193e324f67c8dc2210fd7a06fd578a102b (diff)
downloadwebtrees-262e961bb0362e95de028d3bf995717be1ffea26.tar.gz
webtrees-262e961bb0362e95de028d3bf995717be1ffea26.tar.bz2
webtrees-262e961bb0362e95de028d3bf995717be1ffea26.zip
Alternative fix for #4179
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();