1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Issue #2165 {EUF: field=country}

This commit is contained in:
Cameron
2017-01-24 11:28:00 -08:00
parent 2640e536ff
commit 3552090bea
2 changed files with 26 additions and 10 deletions

View File

@@ -679,14 +679,14 @@ class user_shortcodes extends e_shortcode
if(!$ext->hasPermission($fld,'read'))
{
// e107::getDebug()->log("Wrong permissions for user_euf: ".$fld);
return false;
}
$val = $this->var[$fld];
$type = $ext->getFieldType($fld);
// e107::getDebug()->log(print_a($ext,true));
return $ext->renderValue($val); //TODO auto-detect type, from within the user-extended class.
return $ext->renderValue($val,$type);
}