summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Form_validation.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 427e62f7c..643aecbce 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -690,14 +690,16 @@ class CI_Form_validation {
// We look for the prefix lang: to determine this
if (substr($fieldname, 0, 5) == 'lang:')
{
+ // Grab the variable
$line = substr($fieldname, 5);
-
+
+ // Translate it
$fieldname = $this->CI->lang->line($line);
// Were we able to translate the field name?
if ($fieldname === FALSE)
{
- return $this->CI->lang->line($line);
+ return $line;
}
else
{