2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 20:24:36 +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') { when ('fileshow') {
my $r = _cfgDB_Readfile($param1); my @rets = cfgDB_FileRead($param1);
return ($r)?$r:"File $param1 not found in database."; my $r = (int(@rets)) ? join "\n",@rets : "File $param1 not found in database.";
return $r;
} }
when ('info') { when ('info') {