diff --git a/core/model/ErrorPage.php b/core/model/ErrorPage.php index fde9078ee..91025553d 100755 --- a/core/model/ErrorPage.php +++ b/core/model/ErrorPage.php @@ -177,6 +177,9 @@ class ErrorPage extends Page { * @return String */ static function get_filepath_for_errorcode($statusCode, $locale = null) { + if (singleton('ErrorPage')->hasMethod('alternateFilepathForErrorcode')) { + return singleton('ErrorPage')-> alternateFilepathForErrorcode($statusCode, $locale); + } if(singleton('SiteTree')->hasExtension('Translatable') && $locale && $locale != Translatable::default_locale()) { return self::$static_filepath . "/error-{$statusCode}-{$locale}.html"; } else {