summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorPascal Kriete <pascal.kriete@ellislab.com>2009-10-13 14:56:43 +0200
committerPascal Kriete <pascal.kriete@ellislab.com>2009-10-13 14:56:43 +0200
commitc1895834c410f04419febe83d29547201bbab7d0 (patch)
tree8511536bb5ac068d43732a164ed5d8e2255c0a47 /system
parent8719a5c7fe75b84f49f584065e5ef4e4e2a0f16f (diff)
added translation of fields passed as validation rule parameters
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Form_validation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 1497d8517..e825b1b32 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -658,7 +658,7 @@ class CI_Form_validation {
// of another field? If so we need to grab its "field label"
if (isset($this->_field_data[$param]) AND isset($this->_field_data[$param]['label']))
{
- $param = $this->_field_data[$param]['label'];
+ $param = $this->_translate_fieldname($this->_field_data[$param]['label']);
}
// Build the error message