fix <select type="select-something" was wrongly converted to <et2-selectsomething

This commit is contained in:
ralf 2022-06-18 12:21:05 +02:00
parent d3cfbbe5e6
commit 48b82ef104

View File

@ -204,7 +204,7 @@ function send_template()
// type attribute need to go in widget type <select type="select-account" --> <et2-select-account
if (empty($matches[2]) && isset($attrs['type']))
{
list(,$matches[2])= explode('-', $attrs['type']);
$matches[2] = preg_replace('/^(select|taglist)/', '', $attrs['type']);
unset($attrs['type']);
}
$replace = '<et2-select' . $matches[2] . ' ' . implode(' ', array_map(static function($attr, $val)