use html_entity_decode, as we add options with .text(), it can't be entities, but php knows no string literals with utf-8

This commit is contained in:
Ralf Becker 2011-08-22 07:46:38 +00:00
parent 7dd54648b9
commit 31ab3d9d75

View File

@ -291,7 +291,13 @@ class etemplate_widget_menupopup extends etemplate_widget
if (categories::is_global($cat))
{
$s .= ' ♦';
static $global_marker;
if (is_null($global_marker))
{
// as we add options with .text(), it can't be entities, but php knows no string literals with utf-8
$global_marker = html_entity_decode(' ♦', ENT_NOQUOTES, 'utf-8');
}
$s .= $global_marker;
}
$options[$cat['id']] = empty($cat['description']) ? $s : array(
'label' => $s,