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:
betateilchen 2014-04-26 11:28:16 +00:00
parent aa268a2daf
commit a521b99e92

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