From 8b3a9c685f4622260f3a2b1b48f613ee7802363a Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 25 May 2009 04:08:39 +0000 Subject: [PATCH] BUGFIX #4119 netminds: Fix error page publication for lang to locate replacement. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@77727 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/ErrorPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/ErrorPage.php b/core/model/ErrorPage.php index 6e9237694..35bd7bebc 100755 --- a/core/model/ErrorPage.php +++ b/core/model/ErrorPage.php @@ -109,7 +109,7 @@ class ErrorPage extends Page { // if the page is published in a language other than default language, // write a specific language version of the HTML page - $filePath = self::get_filepath_for_errorcode($this->ErrorCode, $this->Lang); + $filePath = self::get_filepath_for_errorcode($this->ErrorCode, $this->Locale); if($fh = fopen($filePath, "w")) { fwrite($fh, $errorContent); fclose($fh);