Skip to content

Commit

Permalink
Dev: remove double label from renderRadio
Browse files Browse the repository at this point in the history
Dev: CHtml::radioButtonList is really awfull, not using ul/li ...
  • Loading branch information
Shnoulle committed Sep 12, 2014
1 parent 1eae2c1 commit e1206ae
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions application/extensions/SettingsWidget/SettingsWidget.php
Expand Up @@ -362,11 +362,6 @@ public function renderRadio($name, array $metaData, $form = null)
$out = '';
$id = $name;
$value = isset($metaData['current']) ? $metaData['current'] : (isset($metaData['default']) ? $metaData['default'] : null);
if (isset($metaData['label']))
{
$out .= CHtml::label($metaData['label'], $id);
}

$out .= CHtml::radioButtonList($name, $value, $metaData['options']);
return $out;
}
Expand Down

0 comments on commit e1206ae

Please sign in to comment.