1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Form - renderValue 'href' option when parsing URLs

This commit is contained in:
secretr 2010-12-06 16:52:04 +00:00
parent 803a8435e5
commit af990019d1

View File

@ -1459,6 +1459,10 @@ class e_form
case 'url':
if(!$value) break;
$ttl = $value;
if(vartrue($parms['href']))
{
return $tp->replaceConstants(vartrue($parms['pre']).$value, varset($parms['replace_mod'],'abs'));
}
if(vartrue($parms['truncate']))
{
$ttl = $tp->text_truncate($value, $parms['truncate'], '...');