mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
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
This commit is contained in:
parent
8d49f7d5ee
commit
8699cbd44c
@ -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.<br><br>
|
||||
The optional flag <code>noheader</code> disables the output of the header lines (Latest Revision, File, Rev, Last Change).
|
||||
<br><br>
|
||||
When issued via FHEMWEB command line, all executed JavaScript files with their corresponding version will be listed additionally.
|
||||
<br><br>
|
||||
Example output of <code>version</code>:
|
||||
<ul>
|
||||
<code><br>
|
||||
@ -177,6 +180,8 @@ sub version_getRevFromControls(;$)
|
||||
<br><br>
|
||||
Der optionale Parameter <code>noheader</code> unterdrückt die Ausgabe des Listenkopfs (Latest Revision, File, Rev, Last Change).
|
||||
<br><br>
|
||||
Wenn dieser Befehl über die FHEMWEB-Kommandozeile eingegeben wird, werden zusätzlich alle aktuell geladenen JavaScript-Dateien mit ihren zugehörigen Versionsinformationen angezeigt.
|
||||
<br><br>
|
||||
Beispiel der Ausgabe von <code>version</code>:
|
||||
<ul>
|
||||
<code><br>
|
||||
@ -208,4 +213,4 @@ sub version_getRevFromControls(;$)
|
||||
</ul>
|
||||
=end html_DE
|
||||
|
||||
=cut
|
||||
=cut
|
Loading…
x
Reference in New Issue
Block a user