From e78d6022fe66cc389227bf8589b765a230e744af Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 4 May 2009 02:17:56 +0000 Subject: [PATCH] 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 --- dev/Debug.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Debug.php b/dev/Debug.php index d1e22ceb0..ab3397192 100644 --- a/dev/Debug.php +++ b/dev/Debug.php @@ -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();