From ea780c697e6eb3d045dbc03865c266ebf90b3b47 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Wed, 29 Mar 2023 11:31:45 -0400 Subject: [PATCH] - Fixed 'img' input which was missing --- src/Form/Ui.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Form/Ui.php b/src/Form/Ui.php index ca004d4..faf9556 100644 --- a/src/Form/Ui.php +++ b/src/Form/Ui.php @@ -53,6 +53,7 @@ class Ui extends UiElement implements Extension { $input = new UiHidden(); break; + case in_array('img', $options): case in_array('image', $options): $input = new UiImage(); break; @@ -119,7 +120,7 @@ class Ui extends UiElement implements Extension { } if (empty($input)) { - throw new \Exception("Missing token ? $token"); + throw new \Exception("Missing token ? $token $arguments"); } return $input->parse($context, $arguments, $token, $options);