Fix Parser\BBCode page
This commit is contained in:
parent
f34fe01f07
commit
ecded3baed
1 changed files with 2 additions and 2 deletions
|
@ -666,11 +666,11 @@ class BBCode extends Parser
|
|||
/**
|
||||
* Формирует данные для формы
|
||||
*/
|
||||
protected function formEditSub(?array $data, string $name, string $class, string|array $legend, string|array $info): array
|
||||
protected function formEditSub(mixed $data, string $name, string $class, string|array $legend, string|array $info): array
|
||||
{
|
||||
$yn = [1 => __('Yes'), 0 => __('No')];
|
||||
$fields = [];
|
||||
$other = \str_ends_with($name, '_attr');
|
||||
$other = ! \str_ends_with($name, '_attr');
|
||||
$key = $other ? "other_attrs[{$name}]" : $name;
|
||||
|
||||
if ('new_attr' === $name) {
|
||||
|
|
Loading…
Add table
Reference in a new issue