MNT Remove unused Translatable

This commit is contained in:
Sabina Talipova 2023-10-13 12:24:33 +13:00
parent 86f01d20bb
commit a35dec14aa

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]);
}