diff options
author | Eric Barnes <eric@ericlbarnes.com> | 2012-07-29 19:17:50 +0200 |
---|---|---|
committer | Eric Barnes <eric@ericlbarnes.com> | 2012-07-29 19:17:50 +0200 |
commit | b01b4f5507523155a598d4ee03d2709a275e88cf (patch) | |
tree | cfe86860d3af5ead77bacda9794a4aad7f8925f1 /system/helpers/date_helper.php | |
parent | d83e727d6deedded5b637e685accb4fac0dc3985 (diff) | |
parent | 49d2f304d4bb9c04c41c34f4675813b9d8ac3204 (diff) |
Merge pull request #1669 from EllisLab/feature/stringify_attributes
Feature/stringify attributes
Diffstat (limited to 'system/helpers/date_helper.php')
-rw-r--r-- | system/helpers/date_helper.php | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php index a45b3d7ac..a792f09a2 100644 --- a/system/helpers/date_helper.php +++ b/system/helpers/date_helper.php @@ -575,22 +575,7 @@ if ( ! function_exists('timezone_menu')) $menu .= ' class="'.$class.'"'; } - // Generate a string from the attributes submitted, if any - if (is_array($attributes)) - { - $atts = ''; - foreach ($attributes as $key => $val) - { - $atts .= ' '.$key.'="'.$val.'"'; - } - $attributes = $atts; - } - elseif (is_string($attributes) && strlen($attributes) > 0) - { - $attributes = ' '.$attributes; - } - - $menu .= $attributes.">\n"; + $menu .= _stringify_attributes($attributes).">\n"; foreach (timezones() as $key => $val) { |