2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 20:06:18 +00:00

a little improvement: use device name if no alias defines (for text/html output methods)

git-svn-id: https://svn.fhem.de/fhem/trunk@6600 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hexenmeister 2014-09-23 00:07:11 +00:00
parent 1d7e84246b
commit 172bbf4a19

View File

@ -30,7 +30,7 @@ package main;
use strict;
use warnings;
my $VERSION = "1.8.1";
my $VERSION = "1.8.2";
use constant {
PERL_VERSION => "perl_version",
@ -1843,6 +1843,7 @@ sub SYSMON_ShowValuesHTMLTitled ($;$@)
{
my ($name, $title, @data) = @_;
$title = $attr{$name}{'alias'} unless $title;
$title = $name unless $title;
return SYSMON_ShowValuesFmt($name, $title, 1, @data);
}
@ -1869,6 +1870,7 @@ sub SYSMON_ShowValuesTextTitled ($;$@)
{
my ($name, $title, @data) = @_;
$title = $attr{$name}{'alias'} unless $title;
$title = $name unless $title;
return SYSMON_ShowValuesFmt($name, $title, 0, @data);
}