- Fixed 'img' input which was missing

This commit is contained in:
Dave Mc Nicoll 2023-03-29 11:31:45 -04:00
parent 6aaa05b37d
commit ea780c697e
1 changed files with 2 additions and 1 deletions

View File

@ -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);