mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-09-28 20:29:23 +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}";
|
$subdomainPart = "-{$subdomain}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// @todo implement Translatable namespace
|
$fileName = FileNameFilter::create()->filter("error-{$statusCode}{$subdomainPart}.html");
|
||||||
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);
|
|
||||||
|
|
||||||
$name = implode('/', [$static_filepath, $fileName]);
|
$name = implode('/', [$static_filepath, $fileName]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user