mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
98_weblink.pm: respect alias for link type (Forum #42467)
git-svn-id: https://svn.fhem.de/fhem/trunk@9512 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a1cf8bd51f
commit
cc0e912c5e
@ -96,7 +96,8 @@ weblink_FwFn($$$$)
|
|||||||
$ret = $link;
|
$ret = $link;
|
||||||
|
|
||||||
} elsif($wltype eq "link") {
|
} elsif($wltype eq "link") {
|
||||||
$ret = "<a href=\"$link\" $attr>$d</a>"; # no FW_pH, open extra browser
|
my $alias = AttrVal($d, "alias", $d);
|
||||||
|
$ret = "<a href=\"$link\" $attr>$alias</a>"; # no FW_pH, open extra browser
|
||||||
|
|
||||||
} elsif($wltype eq "image") {
|
} elsif($wltype eq "image") {
|
||||||
$ret = "<img src=\"$link\" $attr><br>" .
|
$ret = "<img src=\"$link\" $attr><br>" .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user