mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-07 13:59:30 +01:00
replace deprecated et2_dialog with new Et2Dialog
This commit is contained in:
parent
22f695b2e2
commit
bb12fea3c9
@ -623,6 +623,11 @@ function stringAttrs(array $attrs)
|
|||||||
{
|
{
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
// replace deprecated et2_dialog with new Et2Dialog
|
||||||
|
if (!empty($attrs['onclick']) && strpos($attrs['onclick'], 'et2_dialog.') !== false)
|
||||||
|
{
|
||||||
|
$attrs['onclick'] = str_replace('et2_dialog.', 'Et2Dialog.', $attrs['onclick']);
|
||||||
|
}
|
||||||
return ' '.implode(' ', array_map(static function ($name, $value) {
|
return ' '.implode(' ', array_map(static function ($name, $value) {
|
||||||
return $name . '="' . $value . '"';
|
return $name . '="' . $value . '"';
|
||||||
}, array_keys($attrs), $attrs));
|
}, array_keys($attrs), $attrs));
|
||||||
|
Loading…
Reference in New Issue
Block a user