Permalink
Browse files

MINOR take advantage of an alternate path for error pages (from r101883)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112048 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 5fd242a commit bbdad4207f237c2be19c2711b81d444c1fb982a7 @sminnee sminnee committed Oct 13, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 core/model/ErrorPage.php
@@ -176,6 +176,9 @@ function fieldLabels($includerelations = true) {
* @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 {

0 comments on commit bbdad42

Please sign in to comment.