Merge pull request #547 from creative-commoners/pulls/3.1/remove-translatable

MNT Remove unused Translatable
This commit is contained in:
Guy Sartorelli 2023-10-16 11:21:11 +13:00 committed by GitHub
commit 2408f3dbaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,17 +48,7 @@ class ErrorPageSubsite extends DataExtension
$subdomainPart = "-{$subdomain}";
}
// @todo implement Translatable namespace
if (singleton(SiteTree::class)->hasExtension('Translatable')
&& $locale
&& $locale != Translatable::default_locale()
) {
$fileName = "error-{$statusCode}-{$locale}{$subdomainPart}.html";
} else {
$fileName= "error-{$statusCode}{$subdomainPart}.html";
}
$fileName = FileNameFilter::create()->filter($fileName);
$fileName = FileNameFilter::create()->filter("error-{$statusCode}{$subdomainPart}.html");
$name = implode('/', [$static_filepath, $fileName]);
}