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:
parent
803a8435e5
commit
af990019d1
@ -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'], '...');
|
||||
|
Loading…
x
Reference in New Issue
Block a user