mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Fixed Config usage in ErrorPage
This commit is contained in:
parent
f73a5c68f3
commit
18201c05af
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user