mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 14:16:42 +00:00
configdb - use generic function for fileshow
git-svn-id: https://svn.fhem.de/fhem/trunk@5668 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a1ec5a162d
commit
fd8d9c6950
@ -247,8 +247,9 @@ sub CommandConfigdb($$) {
|
||||
}
|
||||
|
||||
when ('fileshow') {
|
||||
my $r = _cfgDB_Readfile($param1);
|
||||
return ($r)?$r:"File $param1 not found in database.";
|
||||
my @rets = cfgDB_FileRead($param1);
|
||||
my $r = (int(@rets)) ? join "\n",@rets : "File $param1 not found in database.";
|
||||
return $r;
|
||||
}
|
||||
|
||||
when ('info') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user