Skip to content

Commit

Permalink
Use config merge instead of update
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Kleiner committed May 21, 2023
1 parent 7cef5d2 commit 38fa1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/TaxonomyTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function getCMSFields()
$fields->removeByName('DataObjectTaxonomyTerms');

// Begin to use _t(), first disable 'missing_default_warning', which allows _t() to be called without default
i18n::config()->update('missing_default_warning', false);
i18n::config()->merge('missing_default_warning', false);

// Define a literalField that presents empty line , and could be reused in many occasionz.
$lineBreak = LiteralField::create('LineBreak', '<br />');
Expand Down

0 comments on commit 38fa1c2

Please sign in to comment.