summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Form_validation.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index f2f3712d9..f3535b225 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -54,7 +54,7 @@ class CI_Form_validation {
$this->CI =& get_instance();
// applies delimiters set in config file.
- $this->_config_delimiters();
+ $rules = $this->_config_delimiters($rules);
// Validation rules can be stored in a config file.
$this->_config_rules = $rules;
@@ -76,9 +76,10 @@ class CI_Form_validation {
/**
* if prefixes/suffixes set in config, assign and unset.
*
- * @return void
+ * @param array
+ * @return array
*/
- protected function _config_delimiters()
+ protected function _config_delimiters($rules)
{
if (isset($rules['error_prefix']))
{
@@ -90,6 +91,7 @@ class CI_Form_validation {
$this->_error_suffix = $rules['error_suffix'];
unset($rules['error_suffix']);
}
+ return $rules;
}
// --------------------------------------------------------------------