From 2fd3231325228e01a7ce64777486d420a7cace0e Mon Sep 17 00:00:00 2001 From: Mark Guinn Date: Fri, 12 Sep 2014 12:21:11 +0100 Subject: [PATCH] Fixes a bug that ignored any overridden path for assets/error-404.html etc --- dev/Debug.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/Debug.php b/dev/Debug.php index 2029e0c6d..a6d068e16 100644 --- a/dev/Debug.php +++ b/dev/Debug.php @@ -347,7 +347,7 @@ class Debug { class_exists('Translatable') ? Translatable::get_current_locale() : null ); 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'); // $BaseURL is left dynamic in error-###.html, so that multi-domain sites don't get broken echo str_replace('$BaseURL', Director::absoluteBaseURL(), $content);