From 8943218fe66835067651a72145df96a41d005c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Mon, 24 Nov 2014 11:47:57 +0100 Subject: [PATCH] Fixed bug in PHP 5.3 "Cannot access static:: when no class scope is active" --- src/MadeYourDay/Contao/CustomElements.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); }