From 67d28de26c0ed3ee47283fc51ea964920f57b22c Mon Sep 17 00:00:00 2001 From: markusbloch Date: Mon, 6 Mar 2017 20:43:50 +0000 Subject: [PATCH] 98_version: fix perl warning, add commandref hint for loaded JavaScript files. (Forum: #48362) git-svn-id: https://svn.fhem.de/fhem/trunk@13628 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_version.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/98_version.pm b/fhem/FHEM/98_version.pm index 2222a6015..0b020cb43 100755 --- a/fhem/FHEM/98_version.pm +++ b/fhem/FHEM/98_version.pm @@ -29,6 +29,7 @@ CommandVersion($$) push @ret, cfgDB_svnId() if(configDBUsed()); @files = () if($param && $param eq "revision"); foreach my $fn (@files) { + next unless($fn); next unless($fn =~ /^(?:$modpath.?)?FHEM/ or $fn =~ /fhem.pl$/); # configDB my $mod_name = ($fn=~ /[\/\\]([^\/\\]+)$/ ? $1 : $fn); next if($param ne "" && $mod_name !~ /$param/); @@ -132,6 +133,8 @@ sub version_getRevFromControls(;$) only the latest revision number since the last update.

The optional flag noheader disables the output of the header lines (Latest Revision, File, Rev, Last Change).

+ When issued via FHEMWEB command line, all executed JavaScript files with their corresponding version will be listed additionally. +

Example output of version: