diff --git a/src/Shortcodes/ImageShortcodeProvider.php b/src/Shortcodes/ImageShortcodeProvider.php index 0830cfcd..af5307b9 100644 --- a/src/Shortcodes/ImageShortcodeProvider.php +++ b/src/Shortcodes/ImageShortcodeProvider.php @@ -136,7 +136,7 @@ public static function handle_shortcode($args, $content, $parser, $shortcode, $e } // We're calling renderWith() with an explicit template in case someone wants to use a custom template - $markup = $manipulatedRecord->renderWith(self::class . '_Image'); + $markup = $manipulatedRecord->renderWith(ImageShortcodeProvider::class . '_Image'); // cache it for future reference if ($fileFound) {