diff options
author | Nick Busey <nickabusey@gmail.com> | 2012-02-07 01:55:58 +0100 |
---|---|---|
committer | Nick Busey <nickabusey@gmail.com> | 2012-02-07 01:55:58 +0100 |
commit | c1931667cbc614a704f536beb882931af82241cd (patch) | |
tree | d38f22b603d4d1e179d539644ef5857f3d1c55e1 /system | |
parent | 98c347de9f62a3427170f9f73a692d159765e8cf (diff) |
Renaming equal_to_greater_than to greater_than_equal_to, equal_to_less_than to less_than_equal_to
Diffstat (limited to 'system')
-rw-r--r-- | system/language/english/form_validation_lang.php | 4 | ||||
-rw-r--r-- | system/libraries/Form_validation.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/system/language/english/form_validation_lang.php b/system/language/english/form_validation_lang.php index 2ee2cb9dd..7fa6934f5 100644 --- a/system/language/english/form_validation_lang.php +++ b/system/language/english/form_validation_lang.php @@ -47,9 +47,9 @@ $lang['is_natural'] = "The %s field must contain only positive numbers."; $lang['is_natural_no_zero'] = "The %s field must contain a number greater than zero."; $lang['decimal'] = "The %s field must contain a decimal number."; $lang['less_than'] = "The %s field must contain a number less than %s."; -$lang['equal_to_less_than'] = "The %s field must contain a number equal to or less than %s."; +$lang['less_than_equal_to'] = "The %s field must contain a number equal to or less than %s."; $lang['greater_than'] = "The %s field must contain a number greater than %s."; -$lang['equal_to_greater_than'] = "The %s field must contain a number equal to or greater than %s."; +$lang['greater_than_equal_to'] = "The %s field must contain a number equal to or greater than %s."; /* End of file form_validation_lang.php */ diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 1b2907a08..3ee3cf9df 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -1139,7 +1139,7 @@ class CI_Form_validation { * @param string * @return bool */ - function equal_to_greater_than($str, $min) + function greater_than_equal_to($str, $min) { if ( ! is_numeric($str)) { @@ -1174,7 +1174,7 @@ class CI_Form_validation { * @param string * @return bool */ - function equal_to_less_than($str, $max) + function less_than_equal_to($str, $max) { if ( ! is_numeric($str)) { |