summaryrefslogtreecommitdiffstats
path: root/system/libraries/Form_validation.php
diff options
context:
space:
mode:
authorMike Funk <mfunk@xulonpress.com>2012-03-12 15:13:25 +0100
committerMike Funk <mfunk@xulonpress.com>2012-03-12 15:13:25 +0100
commit994105cb45eba44b62bab41dfce76582b34c6913 (patch)
tree2eee60470e7d2007e5b59d2ad90c70db1a1729aa /system/libraries/Form_validation.php
parent306f56c1bfdafd149b1059325a687ec1a185d00f (diff)
parent6b4deae9143c4419654e4321fe49330eca493acf (diff)
merged with latest develop.
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r--system/libraries/Form_validation.php12
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;