added config process method checking for delimiter values, updated changelog and user guide.
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 0a6a2af..93ec8b3 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -55,6 +55,9 @@
{
$this->CI =& get_instance();
+ // applies delimiters set in config file.
+ $this->_config_delimiters();
+
// Validation rules can be stored in a config file.
$this->_config_rules = $rules;
@@ -69,6 +72,27 @@
log_message('debug', "Form Validation Class Initialized");
}
+
+ // --------------------------------------------------------------------
+
+ /**
+ * if prefixes/suffixes set in config, assign and unset.
+ *
+ * @return void
+ */
+ private function _config_delimiters()
+ {
+ 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']);
+ }
+ }
// --------------------------------------------------------------------