- Fixed a bug added in previous commit
This commit is contained in:
parent
5397ed4fae
commit
d984ddc540
|
@ -6,7 +6,7 @@
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Dave Mc Nicoll",
|
"name": "Dave Mc Nicoll",
|
||||||
"email": "mcndave@gmail.com"
|
"email": "info@mcnd.ca"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
|
|
|
@ -26,7 +26,7 @@ class UiForm extends UiElement implements Extension {
|
||||||
return "</form>";
|
return "</form>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$opt = $context->tokenOptions($token, true);
|
$opt = $context->tokenOptions($token);
|
||||||
|
|
||||||
if (in_array('get', $opt)) {
|
if (in_array('get', $opt)) {
|
||||||
$method = "get";
|
$method = "get";
|
||||||
|
|
|
@ -18,7 +18,7 @@ class UiTextarea extends UiInput {
|
||||||
|
|
||||||
public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string
|
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) ?>";
|
return "<?php echo ( new \\" . static::class . "() )->echoRaw($raw)->buildHtml($arguments) ?>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue