Skip to content

Commit

Permalink
Merge pull request #547 from creative-commoners/pulls/3.1/remove-tran…
Browse files Browse the repository at this point in the history
…slatable

MNT Remove unused Translatable
  • Loading branch information
GuySartorelli authored Oct 15, 2023
2 parents 09434d6 + a35dec1 commit 2408f3d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/Extensions/ErrorPageSubsite.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,7 @@ public function updateErrorFilename(&$name, &$statusCode)
$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]);
}
Expand Down

0 comments on commit 2408f3d

Please sign in to comment.