10000 [FrameworkBundle] fixed typos (patch from Dennis.Verspuij) · lcf/symfony@e0961be · GitHub
[go: up one dir, main page]

Skip to content

Commit e0961be

Browse files
committed
[FrameworkBundle] fixed typos (patch from Dennis.Verspuij)
1 parent fa77f08 commit e0961be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Templating/Form/Field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function widget(array $attributes = array(), $template = null)
5656
));
5757
}
5858

59-
public function label($label, $template = null)
59+
public function label($label = false, $template = null)
6060
{
6161
if (null === $template) {
6262
$template = 'FrameworkBundle:Form:label.php';

src/Symfony/Bundle/FrameworkBundle/Templating/HtmlGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected function doChoices(array $choices, array $selected)
121121
if (is_array($option)) {
122122
$options[] = $this->contentTag(
123123
'optgroup',
124-
"\n".renderChoices($option, $selected)."\n",
124+
"\n".$this->doChoices($option, $selected)."\n",
125125
array('label' => $this->escape($key))
126126
);
127127
} else {

0 commit comments

Comments
 (0)
0