replacing all possible variants of br-tag with "\n"

This commit is contained in:
Ralf Becker 2013-05-09 09:45:37 +00:00
parent 77099cf331
commit 9816c79b72

View File

@ -348,8 +348,8 @@ class preferences_settings
$content[$tab][] = array( $content[$tab][] = array(
'name' => $setting['name'], 'name' => $setting['name'],
'type' => $setting['type'], 'type' => $setting['type'],
'label' => str_replace('<br>', "\n", $setting['label']), 'label' => preg_replace('|<br[ /]*>|i', "\n", $setting['label']),
'help' => str_replace('<br>', "\n", $setting['help']), 'help' => preg_replace('|<br[ /]*>|i', "\n", $setting['help']),
'size' => $setting['size'], // old eT 'size' => $setting['size'], // old eT
'default' => !empty($default) ? lang('Default').': '.$default : null, 'default' => !empty($default) ? lang('Default').': '.$default : null,
); );