mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX fix reverting to parent content (from r89097)
This commit is contained in:
parent
191717acae
commit
caddec36bc
@ -87,13 +87,21 @@ class SubsitesVirtualPage extends VirtualPage {
|
||||
parent::onBeforeWrite();
|
||||
|
||||
if($this->CustomMetaTitle) $this->MetaTitle = $this->CustomMetaTitle;
|
||||
else $this->MetaTitle = $this->ContentSource()->MetaTitle;
|
||||
else {
|
||||
$this->MetaTitle = $this->ContentSource()->MetaTitle ? $this->ContentSource()->MetaTitle : $this->MetaTitle;
|
||||
}
|
||||
if($this->CustomMetaKeywords) $this->MetaKeywords = $this->CustomMetaKeywords;
|
||||
else $this->MetaKeywords = $this->ContentSource()->MetaKeywords;
|
||||
else {
|
||||
$this->MetaKeywords = $this->ContentSource()->MetaKeywords ? $this->ContentSource()->MetaKeywords : $this->MetaKeywords;
|
||||
}
|
||||
if($this->CustomMetaDescription) $this->MetaDescription = $this->CustomMetaDescription;
|
||||
else $this->MetaDescription = $this->ContentSource()->MetaDescription;
|
||||
else {
|
||||
$this->MetaDescription = $this->ContentSource()->MetaDescription ? $this->ContentSource()->MetaDescription : $this->MetaDescription;
|
||||
}
|
||||
if($this->CustomExtraMeta) $this->ExtraMeta = $this->CustomExtraMeta;
|
||||
else $this->CustomExtraMeta = $this->ContentSource()->CustomExtraMeta;
|
||||
else {
|
||||
$this->ExtraMeta = $this->ContentSource()->ExtraMeta ? $this->ContentSource()->ExtraMeta : $this->ExtraMeta;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user