2
0
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:
betateilchen 2014-04-26 11:28:16 +00:00
parent a1ec5a162d
commit fd8d9c6950

View File

@ -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') {