mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixes a bug that ignored any overridden path for assets/error-404.html etc
This commit is contained in:
parent
12411b7aa3
commit
2fd3231325
@ -347,7 +347,7 @@ class Debug {
|
|||||||
class_exists('Translatable') ? Translatable::get_current_locale() : null
|
class_exists('Translatable') ? Translatable::get_current_locale() : null
|
||||||
);
|
);
|
||||||
if(file_exists($errorFilePath)) {
|
if(file_exists($errorFilePath)) {
|
||||||
$content = file_get_contents(ASSETS_PATH . "/error-$statusCode.html");
|
$content = file_get_contents($errorFilePath);
|
||||||
if(!headers_sent()) header('Content-Type: text/html');
|
if(!headers_sent()) header('Content-Type: text/html');
|
||||||
// $BaseURL is left dynamic in error-###.html, so that multi-domain sites don't get broken
|
// $BaseURL is left dynamic in error-###.html, so that multi-domain sites don't get broken
|
||||||
echo str_replace('$BaseURL', Director::absoluteBaseURL(), $content);
|
echo str_replace('$BaseURL', Director::absoluteBaseURL(), $content);
|
||||||
|
Loading…
Reference in New Issue
Block a user