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);