Permalink
Browse files

Label separator can now be desabled

  • Loading branch information...
1 parent e87681c commit 341b977e5b27d36c9dae5f290514126c03723600 @olvlvl committed Apr 25, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 wdelement.php
View
@@ -1030,6 +1030,7 @@ public function __toString()
{
$is_required = $this->get(self::T_REQUIRED);
$position = $this->get(self::T_LABEL_POSITION, 'after');
+ $separator = $this->get(self::T_LABEL_SEPARATOR, true);
if ($position == 'left')
{
@@ -1066,7 +1067,7 @@ public function __toString()
$label = $label . '<sup>&nbsp;*</sup>';
}
- if ($position != 'after')
+ if ($position != 'after' && $separator)
{
$label .= '<span class="separator">&nbsp;:</span>';
}

0 comments on commit 341b977

Please sign in to comment.