diff --git a/src/MadeYourDay/Contao/CustomElements.php b/src/MadeYourDay/Contao/CustomElements.php index 2767b78..792ce8e 100644 --- a/src/MadeYourDay/Contao/CustomElements.php +++ b/src/MadeYourDay/Contao/CustomElements.php @@ -485,7 +485,7 @@ protected function createDcaItem($fieldPrefix, $fieldName, $fieldConfig, &$palet && count(array_filter($fieldConfig['reference'], 'is_array')) ) { $fieldConfig['reference'] = array_map(function($label) { - return static::getLabelTranslated($label); + return \MadeYourDay\Contao\CustomElements::getLabelTranslated($label); }, $fieldConfig['reference']); }