Removed template population from 'create copy' function. This is done on display instead of copy now

This commit is contained in:
Sam Minnee 2008-01-31 23:11:47 +00:00
parent 750edb0634
commit a4a543cab8

View File

@ -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 {
}
}
?>
?>