From 23f9a1fb36fe764e699b770cbdf72f2ca582088a Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 15:09:34 +0200 Subject: [PATCH] remove magic --- src/Backend.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Backend.php b/src/Backend.php index 2297c88..628658c 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -47,10 +47,10 @@ class Backend extends dcNsProcess echo '
' . '

' . __('Optional e-mail address') . '

' . - (new Para())->items([ - (new Checkbox(My::SETTING_NAME, (bool) dcCore::app()->blog->settings->get(My::SETTING_NAME)->get('enabled')))->value(1), - (new Label(__('Make e-mail address optional in comments'), Label::OUTSIDE_LABEL_AFTER))->for(My::SETTING_NAME)->class('classic'), - ])->render() . + (new Para())->__call('items', [[ + (new Checkbox(My::SETTING_NAME, (bool) dcCore::app()->blog->settings->get(My::SETTING_NAME)->get('enabled')))->__call('value', [1]), + (new Label(__('Make e-mail address optional in comments'), Label::OUTSIDE_LABEL_AFTER))->__call('for', [My::SETTING_NAME])->__call('class', ['classic']), + ]])->render() . '
'; });