From 313f466e77fe63df0c53c20b54540945a0b165cd Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 29 Oct 2018 13:37:23 +0100 Subject: [PATCH] Fix incorrect variable in GD Adapter --- src/Adapter/GD.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Adapter/GD.php b/src/Adapter/GD.php index 21870fce8..92fbdbe11 100644 --- a/src/Adapter/GD.php +++ b/src/Adapter/GD.php @@ -729,7 +729,7 @@ public function image($img_url, $x, $y, $w, $h, $resolution = "normal") $func_name = "imagecreatefrom$img_type"; if (!function_exists($func_name)) { if (!method_exists("Dompdf\Helpers", $func_name)) { - throw new \Exception("Function $func_name() not found. Cannot convert $type image: $img_url. Please install the image PHP extension."); + throw new \Exception("Function $func_name() not found. Cannot convert $img_type image: $img_url. Please install the image PHP extension."); } $func_name = "\\Dompdf\\Helpers::" . $func_name; }