[10.0.036.dev] fix aperçu des polices

This commit is contained in:
Fred Tempez 2020-02-18 15:28:33 +01:00
parent 0d15efd316
commit 8bc15e54f3

View File

@ -543,7 +543,7 @@ class template {
$html .= $attributes['fonts'] === true ? sprintf( $html .= $attributes['fonts'] === true ? sprintf(
'<option value="%s"%s style="font-family: %s;">%s</option>', '<option value="%s"%s style="font-family: %s;">%s</option>',
$value, $value,
$attributes['selected'] == str_replace('+',' ',$value) ? ' selected' : '', // Double == pour ignorer le type de variable car $_POST change les types en string $attributes['selected'] == $value ? ' selected' : '', // Double == pour ignorer le type de variable car $_POST change les types en string
str_replace('+',' ',$value), str_replace('+',' ',$value),
$text $text
) : sprintf( ) : sprintf(