Merge branch '4.1' into 4.2
This commit is contained in:
commit
7eaa44caac
1 file changed
+3
-2
+3
-2
@@ -466,15 +466,16 @@ class FormBuilder {
|
|||||||
* @param string $name
|
* @param string $name
|
||||||
* @param string $selected
|
* @param string $selected
|
||||||
* @param array $options
|
* @param array $options
|
||||||
|
* @param string $format
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function selectMonth($name, $selected = null, $options = array())
|
public function selectMonth($name, $selected = null, $options = array(), $format = '%B')
|
||||||
{
|
{
|
||||||
$months = array();
|
$months = array();
|
||||||
|
|
||||||
foreach (range(1, 12) as $month)
|
foreach (range(1, 12) as $month)
|
||||||
{
|
{
|
||||||
$months[$month] = strftime('%B', mktime(0, 0, 0, $month, 1));
|
$months[$month] = strftime($format, mktime(0, 0, 0, $month, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->select($name, $months, $selected, $options);
|
return $this->select($name, $months, $selected, $options);
|
||||||
|
|||||||
Reference in new issue
Block a user