diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2008-09-22 23:58:10 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2008-09-22 23:58:10 +0200 |
commit | 066954088c74cc4eaa1d46a6193b2ed45dcf13ff (patch) | |
tree | a13cd677a335c662023af0e5d939c2482079353e /system/libraries/Form_validation.php | |
parent | 193743a4a65cee93941022896be6791cbadb979a (diff) |
One more tweak...
Diffstat (limited to 'system/libraries/Form_validation.php')
-rw-r--r-- | system/libraries/Form_validation.php | 6 |
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
{
|