Skip to content

Commit

Permalink
Merge pull request #1026 from creative-commoners/pulls/4/stop-using-depr
Browse files Browse the repository at this point in the history
API Stop using deprecated API
  • Loading branch information
sabina-talipova authored Dec 5, 2022
2 parents 1f7a4a5 + 9694a40 commit c143e86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Models/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public function getCMSFields()
if ($styles && count($styles ?? []) > 0) {
$styleDropdown = DropdownField::create('Style', _t(__CLASS__.'.STYLE', 'Style variation'), $styles);

$fields->insertBefore($styleDropdown, 'ExtraClass');
$fields->insertBefore('ExtraClass', $styleDropdown);

$styleDropdown->setEmptyString(_t(__CLASS__.'.CUSTOM_STYLES', 'Select a style..'));
} else {
Expand Down
4 changes: 3 additions & 1 deletion src/Search/ElementalSolrIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ class ElementalSolrIndex extends SolrIndex
{
public function __construct()
{
Deprecation::notice('4.2.0', 'Use a custom index instead', Deprecation::SCOPE_CLASS);
Deprecation::withNoReplacement(function () {
Deprecation::notice('4.2.0', 'Use a custom index instead', Deprecation::SCOPE_CLASS);
});
}

public function init()
Expand Down

0 comments on commit c143e86

Please sign in to comment.