diff --git a/core/model/VirtualPage.php b/core/model/VirtualPage.php index 0498b213c..a720ecfad 100755 --- a/core/model/VirtualPage.php +++ b/core/model/VirtualPage.php @@ -48,6 +48,12 @@ class VirtualPage extends Page { return $this->CopyContentFrom(); } + function allowedChildren() { + if($this->CopyContentFrom()) { + return $this->CopyContentFrom()->allowedChildren(); + } + } + /** * Generate the CMS fields from the fields from the original page. @@ -117,7 +123,7 @@ class VirtualPage extends Page { */ function copyFrom($source) { if($source) { - foreach($this->getVirtualFields() AS $virtualField) + foreach($this->getVirtualFields() as $virtualField) $this->$virtualField = $source->$virtualField; } } @@ -263,4 +269,4 @@ class VirtualPage_Controller extends Page_Controller { } } -?> \ No newline at end of file +?>