BUGFIX Fixed undefined $this->Parent in SiteTree::getCMSFields() (from r95422)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@95638 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-12-16 05:49:39 +00:00
parent bf19a704a4
commit ba2066b8dd

View File

@ -1584,7 +1584,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
new FieldGroup(_t('SiteTree.URL', "URL"),
new LabelField('BaseUrlLabel',Controller::join_links (
Director::absoluteBaseURL(),
(self::nested_urls() && $this->ParentID ? $this->Parent->RelativeLink(true) : null)
(self::nested_urls() && $this->ParentID ? $this->Parent()->RelativeLink(true) : null)
)),
new TextField("URLSegment","URLSegment"),
new LabelField('TrailingSlashLabel',"/")