From 18201c05afb1617afe024b6c63eb16ff384f278d Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 27 Mar 2013 12:00:55 +0100 Subject: [PATCH] Fixed Config usage in ErrorPage --- code/model/ErrorPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/ErrorPage.php b/code/model/ErrorPage.php index e5603b21..f24fa76d 100644 --- a/code/model/ErrorPage.php +++ b/code/model/ErrorPage.php @@ -70,7 +70,7 @@ class ErrorPage extends Page { public function requireDefaultRecords() { parent::requireDefaultRecords(); - if ($this->class == 'ErrorPage' && SiteTree::get_create_default_pages()) { + if ($this->class == 'ErrorPage' && SiteTree::config()->create_default_pages) { // Ensure that an assets path exists before we do any error page creation if(!file_exists(ASSETS_PATH)) { mkdir(ASSETS_PATH);