Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c2da4c0

Browse files
committed
Merge branch '4.2'
2 parents bd99a60 + 7f01c3f commit c2da4c0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Illuminate/Html/FormBuilder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,15 +466,16 @@ public function selectYear()
466466
* @param string $name
467467
* @param string $selected
468468
* @param array $options
469+
* @param string $format
469470
* @return string
470471
*/
471-
public function selectMonth($name, $selected = null, $options = array())
472+
public function selectMonth($name, $selected = null, $options = array(), $format = '%B')
472473
{
473474
$months = array();
474475

475476
foreach (range(1, 12) as $month)
476477
{
477-
$months[$month] = strftime('%B', mktime(0, 0, 0, $month, 1));
478+
$months[$month] = strftime($format, mktime(0, 0, 0, $month, 1));
478479
}
479480

480481
return $this->select($name, $months, $selected, $options);

0 commit comments

Comments
 (0)