Skip to content

Commit

Permalink
FIX Update deprecation notice with correct message
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed May 4, 2023
1 parent 7eebeb2 commit b5b16f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Model/EmbedResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use SilverStripe\Dev\Deprecation;

/**
* @deprecated 1.2.0 Use SilverStripe\View\Embed\EmbedResource instead
* @deprecated 1.2.0 Use SilverStripe\View\Embed\EmbedContainer instead
*/
class EmbedResource extends \SilverStripe\View\Embed\EmbedResource
{
Expand All @@ -14,7 +14,7 @@ class EmbedResource extends \SilverStripe\View\Embed\EmbedResource
*/
public function __construct($url)
{
Deprecation::notice('1.2.0', 'Use SilverStripe\View\Embed\EmbedResource instead', Deprecation::SCOPE_CLASS);
Deprecation::notice('1.2.0', 'Use SilverStripe\View\Embed\EmbedContainer instead', Deprecation::SCOPE_CLASS);
parent::__construct($url);
}
}

0 comments on commit b5b16f0

Please sign in to comment.