Skip to content

Commit

Permalink
Fix to optgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
glennjacobs committed Jun 1, 2014
1 parent 73c913e commit 0cd3070
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Forma/Tags/Optgroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ class Optgroup extends BaseTag
protected $tagName = 'optgroup';
protected $selected;

function __construct($text=null,$options=null,$selected=false)
function __construct($label=null,$options=null,$selected=false)
{
if ($selected)
$this->attributes['selected'] = null;
if ($label)
$this->attributes['label'] = $label;

$this->selected = $selected;

$this->text = \Forma\Helpers::hasLang($text) ? \Forma\Helpers::lang($text) : $text;

$this->options($options);
}

Expand Down

0 comments on commit 0cd3070

Please sign in to comment.