mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Removed template population from 'create copy' function. This is done on display instead of copy now
This commit is contained in:
parent
750edb0634
commit
a4a543cab8
@ -104,12 +104,6 @@ class SiteTreeSubsites extends DataObjectDecorator {
|
||||
|
||||
if($isTemplate) $page->MasterPageID = $this->owner->ID;
|
||||
|
||||
foreach(self::$template_fields as $field) {
|
||||
foreach(self::$template_variables as $variable => $intranetField) {
|
||||
$page->$field = str_ireplace($variable, $subsite->$intranetField, $page->$field);
|
||||
}
|
||||
}
|
||||
|
||||
$page->write();
|
||||
|
||||
return $page;
|
||||
@ -136,4 +130,4 @@ class SiteTreeSubsites extends DataObjectDecorator {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user