@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $labels = parent::fieldLabels($includerelations); |
| 89 | 89 | |
| 90 | 90 | $labels['Content'] = _t(__CLASS__.'.ContentLabel', 'Intro'); |
| 91 | - $labels['Promos'] = _t(__CLASS__ . '.PromosLabel', 'Promos'); |
|
| 91 | + $labels['Promos'] = _t(__CLASS__.'.PromosLabel', 'Promos'); |
|
| 92 | 92 | |
| 93 | 93 | return $labels; |
| 94 | 94 | } |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | */ |
| 99 | 99 | public function getCMSFields() |
| 100 | 100 | { |
| 101 | - $this->beforeUpdateCMSFields(function (FieldList $fields) { |
|
| 101 | + $this->beforeUpdateCMSFields(function(FieldList $fields) { |
|
| 102 | 102 | $fields->dataFieldByName('Content') |
| 103 | 103 | ->setRows(5); |
| 104 | 104 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | } else { |
| 144 | 144 | $label = ' promos'; |
| 145 | 145 | } |
| 146 | - return DBField::create_field('HTMLText', $this->Promos()->count() . $label)->Summary(20); |
|
| 146 | + return DBField::create_field('HTMLText', $this->Promos()->count().$label)->Summary(20); |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |