summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-09-23 03:18:36 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-09-23 03:18:36 +0200
commit96fabe576f4caf78d3c3af759d2d03bab64801f9 (patch)
tree5dae49dc66475a8872afee98b70f266633f9491a /system/libraries
parent066954088c74cc4eaa1d46a6193b2ed45dcf13ff (diff)
Fixed a boneheaded mistake I made...
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Form_validation.php10
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;
}
// --------------------------------------------------------------------