diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-12 15:31:53 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-12 15:31:53 +0100 |
commit | e044d6c586728a28b291880dd37562f4a7551d36 (patch) | |
tree | cd309d72b20f6dbe11ae0d5ce0c7cf2168812ee7 /system/libraries/Form_validation.php | |
parent | 4c4740ec492b30aeb47cb1829525247053e4adfe (diff) | |
parent | 802953234f0b7669333807aaa3f2318778cde187 (diff) |
Merge upstream branch
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r-- | system/libraries/Form_validation.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 4ad31ebfa..826d94fb0 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -53,6 +53,18 @@ class CI_Form_validation { { $this->CI =& get_instance(); + // applies delimiters set in config file. + if (isset($rules['error_prefix'])) + { + $this->_error_prefix = $rules['error_prefix']; + unset($rules['error_prefix']); + } + if (isset($rules['error_suffix'])) + { + $this->_error_suffix = $rules['error_suffix']; + unset($rules['error_suffix']); + } + // Validation rules can be stored in a config file. $this->_config_rules = $rules; |