Skip to content

Commit

Permalink
Fixed bug in PHP 5.3 "Cannot access static:: when no class scope is a…
Browse files Browse the repository at this point in the history
…ctive"
  • Loading branch information
ausi committed Nov 24, 2014
1 parent 8a98952 commit 8943218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MadeYourDay/Contao/CustomElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit 8943218

Please sign in to comment.