Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Fix incorrect variable in GD Adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored and bsweeney committed Nov 11, 2018
1 parent 004cbec commit 313f466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/GD.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 313f466

Please sign in to comment.