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:
Ingo Schommer 2009-05-04 02:17:56 +00:00
parent f18a9d3cc6
commit e78d6022fe

View File

@ -257,7 +257,7 @@ class Debug {
} else {
$errorFilePath = ErrorPage::get_filepath_for_errorcode($statusCode, Translatable::current_locale());
if(file_exists($errorFilePath)) {
echo file_get_contents(ASSETS_PATH . "/error-$statusCode.html");
echo file_get_contents($errorFilePath);
} else {
$renderer = new DebugView();
$renderer->writeHeader();