MINOR if you clear a custom metadata field, it will reset back to the parent. (from r88838)

This commit is contained in:
Tom Rix 2010-03-01 21:26:20 +00:00
parent 22b407168c
commit ea21e6ff35

View File

@ -84,9 +84,13 @@ class SubsitesVirtualPage extends VirtualPage {
parent::onBeforeWrite();
if($this->CustomMetaTitle) $this->MetaTitle = $this->CustomMetaTitle;
else $this->MetaTitle = $this->ContentSource()->MetaTitle;
if($this->CustomMetaKeywords) $this->MetaKeywords = $this->CustomMetaKeywords;
else $this->MetaKeywords = $this->ContentSource()->MetaKeywords;
if($this->CustomMetaDescription) $this->MetaDescription = $this->CustomMetaDescription;
else $this->MetaDescription = $this->ContentSource()->MetaDescription;
if($this->CustomExtraMeta) $this->ExtraMeta = $this->CustomExtraMeta;
else $this->CustomExtraMeta = $this->ContentSource()->CustomExtraMeta;
}
}