diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-09 21:01:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-09 21:01:38 +0000 |
commit | fb17591d938f347f27d2184eed2ae170e2f053dd (patch) | |
tree | 58df33b6301c3f6c18dee717bff52fddb1be34a1 /modules | |
parent | 006207d7a5b7757c0cf34cb659072c5e674d5363 (diff) | |
download | brdo-fb17591d938f347f27d2184eed2ae170e2f053dd.tar.gz brdo-fb17591d938f347f27d2184eed2ae170e2f053dd.tar.bz2 |
- Patch #827086 by mcarbone: date format screen dies with a PDO error when the format is longer than 100 characters.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/system.admin.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 9839b7554..8dd3fbaba 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -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>', |