Commit fb17591d authored by Dries's avatar Dries

- Patch #827086 by mcarbone: date format screen dies with a PDO error when the...

- Patch #827086 by mcarbone: date format screen dies with a PDO error when the format is longer than 100 characters.
parent 006207d7
......@@ -2875,6 +2875,7 @@ function system_configure_date_formats_form($form, &$form_state, $dfid = 0) {
$form['date_format'] = array(
'#type' => 'textfield',
'#title' => t('Format string'),
'#maxlength' => 100,
'#description' => t('A user-defined date format. See the <a href="@url">PHP manual</a> for available options.', array('@url' => 'http://php.net/manual/function.date.php')),
'#default_value' => ($dfid ? $format->format : ''),
'#field_suffix' => ' <small id="edit-date-format-suffix">' . $now . '</small>',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment