diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2008-09-23 03:18:36 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2008-09-23 03:18:36 +0200 |
commit | 96fabe576f4caf78d3c3af759d2d03bab64801f9 (patch) | |
tree | 5dae49dc66475a8872afee98b70f266633f9491a /system/libraries | |
parent | 066954088c74cc4eaa1d46a6193b2ed45dcf13ff (diff) |
Fixed a boneheaded mistake I made...
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Form_validation.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php index 643aecbce..f0c1500df 100644 --- a/system/libraries/Form_validation.php +++ b/system/libraries/Form_validation.php @@ -514,7 +514,7 @@ class CI_Form_validation { }
else
{
- $line = $this->_translate_fieldname('isset');
+ $line = $this->_error_messages[$rule];
}
// Build the error message
@@ -646,7 +646,7 @@ class CI_Form_validation { // Did the rule test negatively? If so, grab the error.
if ($result === FALSE)
- {
+ {
if ( ! isset($this->_error_messages[$rule]))
{
if (FALSE === ($line = $this->CI->lang->line($rule)))
@@ -656,8 +656,8 @@ class CI_Form_validation { }
else
{
- $line = $this->_translate_fieldname($rule);
- }
+ $line = $this->_error_messages[$rule];
+ }
// Build the error message
$message = sprintf($line, $this->_translate_fieldname($row['label']), $param);
@@ -707,7 +707,7 @@ class CI_Form_validation { }
}
- return $this->CI->lang->line($fieldname);
+ return $fieldname;
}
// --------------------------------------------------------------------
|