summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-01-12 11:23:56 +0100
committerAndrey Andreev <narf@devilix.net>2015-01-12 11:23:56 +0100
commit942a1d87aecbee7ffc57e6eae19cf5e90688b8dc (patch)
tree32b01a05c1dab8c23313a1243c76a8899688cd00 /system
parent99f31e76bd06876cd3bf789f9d2774f79818b7df (diff)
parentf42e78cfef6bc9de7ee1c04673d993d605f5b589 (diff)
Merge pull request #3467 from aanbar/which_field_failed
Form_validation: Which field failed
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 d9d92f0ad..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.';
+ $line = $this->CI->lang->line('form_validation_error_message_not_set');
}
}
else