summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAhmad Anbar <aanbar@gmail.com>2015-01-12 11:18:17 +0100
committerAhmad Anbar <aanbar@gmail.com>2015-01-12 11:18:17 +0100
commitf42e78cfef6bc9de7ee1c04673d993d605f5b589 (patch)
tree32b01a05c1dab8c23313a1243c76a8899688cd00 /system
parent42140f5782dd53416360961a6df59c2aca193e1b (diff)
Updated to use the language file
Diffstat (limited to 'system')
-rw-r--r--system/language/english/form_validation_lang.php1
-rw-r--r--system/libraries/Form_validation.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/system/language/english/form_validation_lang.php b/system/language/english/form_validation_lang.php
index d4de218b8..558949bf6 100644
--- a/system/language/english/form_validation_lang.php
+++ b/system/language/english/form_validation_lang.php
@@ -64,6 +64,7 @@ $lang['form_validation_less_than'] = 'The {field} field must contain a number l
$lang['form_validation_less_than_equal_to'] = 'The {field} field must contain a number less than or equal to {param}.';
$lang['form_validation_greater_than'] = 'The {field} field must contain a number greater than {param}.';
$lang['form_validation_greater_than_equal_to'] = 'The {field} field must contain a number greater than or equal to {param}.';
+$lang['form_validation_error_message_not_set'] = 'Unable to access an error message corresponding to your field name {field}.';
/* End of file form_validation_lang.php */
/* Location: ./system/language/english/form_validation_lang.php */ \ No newline at end of file
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 82ac34288..f731544b1 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -831,7 +831,7 @@ class CI_Form_validation {
// DEPRECATED support for non-prefixed keys
&& FALSE === ($line = $this->CI->lang->line($rule, FALSE)))
{
- $line = 'Unable to access an error message corresponding to your field name: '.$row['field'];
+ $line = $this->CI->lang->line('form_validation_error_message_not_set');
}
}
else