From a4a543cab8adcb0468ba41beffc67a47764b942c Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 31 Jan 2008 23:11:47 +0000 Subject: [PATCH] Removed template population from 'create copy' function. This is done on display instead of copy now --- code/SiteTreeSubsites.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/code/SiteTreeSubsites.php b/code/SiteTreeSubsites.php index e530702..c748d70 100644 --- a/code/SiteTreeSubsites.php +++ b/code/SiteTreeSubsites.php @@ -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 { } } -?> \ No newline at end of file +?>