diff --git a/dev/Debug.php b/dev/Debug.php index ab3397192..b4cab8455 100644 --- a/dev/Debug.php +++ b/dev/Debug.php @@ -255,7 +255,7 @@ class Debug { if(Director::is_ajax()) { echo $friendlyErrorMessage; } else { - $errorFilePath = ErrorPage::get_filepath_for_errorcode($statusCode, Translatable::current_locale()); + $errorFilePath = ErrorPage::get_filepath_for_errorcode($statusCode, Translatable::get_current_locale()); if(file_exists($errorFilePath)) { echo file_get_contents($errorFilePath); } else {