mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-09-28 12:26:09 +02:00
MNT Remove unused Translatable
This commit is contained in:
parent
86f01d20bb
commit
a35dec14aa
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user