Skip to content

Commit

Permalink
Merge pull request #1354 from creative-commoners/pulls/1.13/fix-wrong…
Browse files Browse the repository at this point in the history
…-deprecated-message

FIX Update deprecation notice with correct message
  • Loading branch information
GuySartorelli authored May 4, 2023
2 parents 7eebeb2 + b5b16f0 commit 9b2a4f6
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 9b2a4f6

Please sign in to comment.