mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixing assets filepath in Debug::friendlyError()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@75914 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f18a9d3cc6
commit
e78d6022fe
@ -257,7 +257,7 @@ class Debug {
|
|||||||
} else {
|
} else {
|
||||||
$errorFilePath = ErrorPage::get_filepath_for_errorcode($statusCode, Translatable::current_locale());
|
$errorFilePath = ErrorPage::get_filepath_for_errorcode($statusCode, Translatable::current_locale());
|
||||||
if(file_exists($errorFilePath)) {
|
if(file_exists($errorFilePath)) {
|
||||||
echo file_get_contents(ASSETS_PATH . "/error-$statusCode.html");
|
echo file_get_contents($errorFilePath);
|
||||||
} else {
|
} else {
|
||||||
$renderer = new DebugView();
|
$renderer = new DebugView();
|
||||||
$renderer->writeHeader();
|
$renderer->writeHeader();
|
||||||
|
Loading…
Reference in New Issue
Block a user