From 900595c80d61a293571265a5215cba77809f222e Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Tue, 21 Apr 2009 05:02:01 +0000 Subject: [PATCH] APICHANGE: pass argument $includerelations into DataObject::fieldLabels() default as true; APICHANGE: BulkLoader::getImportSpec() call DataObject::fieldLables() with $includerelations as false, so that the relations is separated from column fields git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@74858 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/sitefeatures/PageComment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sitefeatures/PageComment.php b/code/sitefeatures/PageComment.php index bcc846fe..ebf9f9c4 100755 --- a/code/sitefeatures/PageComment.php +++ b/code/sitefeatures/PageComment.php @@ -117,8 +117,8 @@ class PageComment extends DataObject { return self::$bbcode; } - function fieldLabels() { - $labels = parent::fieldLabels(); + function fieldLabels($includerelations = true) { + $labels = parent::fieldLabels($includerelations); $labels['Name'] = _t('PageComment.Name', 'Author Name'); $labels['Comment'] = _t('PageComment.Comment', 'Comment'); $labels['IsSpam'] = _t('PageComment.IsSpam', 'Spam?');