mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
configdb - use generic function for fileshow
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5668 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
aa268a2daf
commit
a521b99e92
@ -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