diff --git a/core/model/ErrorPage.php b/core/model/ErrorPage.php index 11f8ead3e..c1bf42ce8 100755 --- a/core/model/ErrorPage.php +++ b/core/model/ErrorPage.php @@ -176,6 +176,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 {