From d984ddc540bd8a0b3f989277ca5eff464b1866e7 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Thu, 2 Feb 2023 18:16:28 +0000 Subject: [PATCH] - Fixed a bug added in previous commit --- composer.json | 2 +- src/Form/UiForm.php | 2 +- src/Form/UiTextarea.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index f17fce7..9512201 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "authors": [ { "name": "Dave Mc Nicoll", - "email": "mcndave@gmail.com" + "email": "info@mcnd.ca" } ], "require": { diff --git a/src/Form/UiForm.php b/src/Form/UiForm.php index 337d5fb..f4cca7c 100644 --- a/src/Form/UiForm.php +++ b/src/Form/UiForm.php @@ -26,7 +26,7 @@ class UiForm extends UiElement implements Extension { return ""; } - $opt = $context->tokenOptions($token, true); + $opt = $context->tokenOptions($token); if (in_array('get', $opt)) { $method = "get"; diff --git a/src/Form/UiTextarea.php b/src/Form/UiTextarea.php index 34d231b..0c08a9f 100644 --- a/src/Form/UiTextarea.php +++ b/src/Form/UiTextarea.php @@ -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 "echoRaw($raw)->buildHtml($arguments) ?>"; }