From b5b16f02f6ae6221ec8c4d7e27e3867e04828654 Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Fri, 5 May 2023 08:53:58 +1200 Subject: [PATCH] FIX Update deprecation notice with correct message --- code/Model/EmbedResource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Model/EmbedResource.php b/code/Model/EmbedResource.php index 40615618d..1789ad6e4 100644 --- a/code/Model/EmbedResource.php +++ b/code/Model/EmbedResource.php @@ -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 { @@ -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); } }