- Fixed a bug added in previous commit

This commit is contained in:
Dave M. 2023-02-02 18:16:28 +00:00
parent 5397ed4fae
commit d984ddc540
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
"authors": [
{
"name": "Dave Mc Nicoll",
"email": "mcndave@gmail.com"
"email": "info@mcnd.ca"
}
],
"require": {

View File

@ -26,7 +26,7 @@ class UiForm extends UiElement implements Extension {
return "</form>";
}
$opt = $context->tokenOptions($token, true);
$opt = $context->tokenOptions($token);
if (in_array('get', $opt)) {
$method = "get";

View File

@ -18,7 +18,7 @@ class UiTextarea extends UiInput {
public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string
{
$raw = in_array('raw', $context->tokenOptions($token, true)) ? 'true' : 'false';
$raw = in_array('raw', $context->tokenOptions($token)) ? 'true' : 'false';
return "<?php echo ( new \\" . static::class . "() )->echoRaw($raw)->buildHtml($arguments) ?>";
}