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();