mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-10-22 14:05:54 +02:00
Fix incorrect set call.
This commit is contained in:
parent
efb7b1dc94
commit
1a4e07c036
@ -47,10 +47,13 @@ class StaticExporter extends Controller {
|
|||||||
|
|
||||||
if(class_exists('SiteTree')) {
|
if(class_exists('SiteTree')) {
|
||||||
if(!$this->config()->get('disable_sitetree_export')) {
|
if(!$this->config()->get('disable_sitetree_export')) {
|
||||||
$objs[] = $this->config()->get('export_objects');
|
$objs[] = $this->config()->export_objects;
|
||||||
$objs[] = "SiteTree";
|
|
||||||
|
if(!in_array('SiteTree', $objs)) {
|
||||||
$this->config()->set('export_objects', $objs);
|
$objs[] = "SiteTree";
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->config()->export_objects = $objs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -250,4 +253,4 @@ class StaticExporter extends Controller {
|
|||||||
|
|
||||||
return $urls;
|
return $urls;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user