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
This commit is contained in:
Normann Lou 2009-04-21 05:02:01 +00:00 committed by Sam Minnee
parent 7402387e48
commit 900595c80d

View File

@ -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?');